diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-12-20 21:31:55 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-12-20 21:31:55 +0100 |
commit | 484cc66f577ba25c142d73c1c2c6590b01d031c2 (patch) | |
tree | 96b6c6debca2645ff28a6d430a95fd31d51e8c99 /libavcodec/indeo2.c | |
parent | d4c47333e1484844c9c613363242777c17e2b11f (diff) | |
download | ffmpeg-484cc66f577ba25c142d73c1c2c6590b01d031c2.tar.gz |
avcodec/indeo2: use init_get_bits8
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/indeo2.c')
-rw-r--r-- | libavcodec/indeo2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/indeo2.c b/libavcodec/indeo2.c index 74135b9af0..3424e00b38 100644 --- a/libavcodec/indeo2.c +++ b/libavcodec/indeo2.c @@ -165,7 +165,8 @@ static int ir2_decode_frame(AVCodecContext *avctx, buf[i] = ff_reverse[buf[i]]; #endif - init_get_bits(&s->gb, buf + start, (buf_size - start) * 8); + if ((ret = init_get_bits8(&s->gb, buf + start, buf_size - start)) < 0) + return ret; if (s->decode_delta) { /* intraframe */ if ((ret = ir2_decode_plane(s, avctx->width, avctx->height, |