aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-02-07 14:26:54 +0000
committerPaul B Mahol <onemda@gmail.com>2015-02-07 15:19:03 +0000
commitec8ec999f4a3f56ba39328106d358ee01efbc14e (patch)
tree72872732bdc8a3a14d422001a1987c7367d32931
parent691b7f5e9e29698841c6bf1654605760020c0e8e (diff)
downloadffmpeg-ec8ec999f4a3f56ba39328106d358ee01efbc14e.tar.gz
avcodec/twinvqdec: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/twinvqdec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/twinvqdec.c b/libavcodec/twinvqdec.c
index 67ce031391..3ea4dfa136 100644
--- a/libavcodec/twinvqdec.c
+++ b/libavcodec/twinvqdec.c
@@ -256,9 +256,10 @@ static int twinvq_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
int channels = tctx->avctx->channels;
int sub;
GetBitContext gb;
- int i, j, k;
+ int i, j, k, ret;
- init_get_bits(&gb, buf, buf_size * 8);
+ if ((ret = init_get_bits8(&gb, buf, buf_size)) < 0)
+ return ret;
skip_bits(&gb, get_bits(&gb, 8));
bits->window_type = get_bits(&gb, TWINVQ_WINDOW_TYPE_BITS);