[FFmpeg-devel] [PATCH] avcodec/wnv1: use init_get_bits8()
Paul B Mahol
onemda at gmail.com
Tue Feb 3 16:50:01 CET 2015
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
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;
--
1.7.11.2
More information about the ffmpeg-devel
mailing list