[FFmpeg-cvslog] avcodec/wnv1: use init_get_bits8()
Paul B Mahol
git at videolan.org
Wed Feb 4 10:59:13 CET 2015
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Feb 3 15:49:34 2015 +0000| [63cb546f0a55ca0353880e6c9b3735706b0abc23] | committer: Paul B Mahol
avcodec/wnv1: 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=63cb546f0a55ca0353880e6c9b3735706b0abc23
---
libavcodec/wnv1.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/wnv1.c b/libavcodec/wnv1.c
index 99aee3c..fb9e9cf 100644
--- a/libavcodec/wnv1.c
+++ b/libavcodec/wnv1.c
@@ -88,7 +88,9 @@ static int decode_frame(AVCodecContext *avctx,
for (i = 8; i < buf_size; i++)
rbuf[i] = ff_reverse[buf[i]];
- init_get_bits(&l->gb, rbuf + 8, (buf_size - 8) * 8);
+
+ if ((ret = init_get_bits8(&l->gb, rbuf + 8, buf_size - 8)) < 0)
+ return ret;
if (buf[2] >> 4 == 6)
l->shift = 2;
More information about the ffmpeg-cvslog
mailing list