aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-01-30 15:00:13 +0000
committerPaul B Mahol <onemda@gmail.com>2015-01-30 19:15:01 +0000
commit2ff7e81b3c5e48256f5b720ab4dab6e050507b2b (patch)
treec5c5e396815bdd6ae347a1a02d9d0f8a1e5ff9f4 /libavcodec
parentdffc16d52314992123b22149fc03eb0ca76d1e54 (diff)
downloadffmpeg-2ff7e81b3c5e48256f5b720ab4dab6e050507b2b.tar.gz
avcodec/vp3: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vp3.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index 726eda05c2..37d41b8e81 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -1998,7 +1998,8 @@ static int vp3_decode_frame(AVCodecContext *avctx,
GetBitContext gb;
int i, ret;
- init_get_bits(&gb, buf, buf_size * 8);
+ if ((ret = init_get_bits8(&gb, buf, buf_size)) < 0)
+ return ret;
#if CONFIG_THEORA_DECODER
if (s->theora && get_bits1(&gb)) {
@@ -2491,7 +2492,7 @@ static av_cold int theora_decode_init(AVCodecContext *avctx)
for (i = 0; i < 3; i++) {
if (header_len[i] <= 0)
continue;
- init_get_bits(&gb, header_start[i], header_len[i] * 8);
+ init_get_bits8(&gb, header_start[i], header_len[i]);
ptype = get_bits(&gb, 8);