[FFmpeg-cvslog] avcodec/indeo2: use init_get_bits8
Paul B Mahol
git at videolan.org
Sun Dec 20 21:32:40 CET 2015
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Dec 20 21:31:55 2015 +0100| [484cc66f577ba25c142d73c1c2c6590b01d031c2] | committer: Paul B Mahol
avcodec/indeo2: use init_get_bits8
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=484cc66f577ba25c142d73c1c2c6590b01d031c2
---
libavcodec/indeo2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/indeo2.c b/libavcodec/indeo2.c
index 74135b9..3424e00 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,
More information about the ffmpeg-cvslog
mailing list