[FFmpeg-cvslog] vima: switch to init_get_bits8()

Paul B Mahol git at videolan.org
Wed Jan 16 21:59:06 CET 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Jan 16 19:51:39 2013 +0000| [641bbd967119e53a8eb3bbfc7b48ed9f6f1f1ef9] | committer: Paul B Mahol

vima: switch to init_get_bits8()

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=641bbd967119e53a8eb3bbfc7b48ed9f6f1f1ef9
---

 libavcodec/vima.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/vima.c b/libavcodec/vima.c
index f823cb3..9019535 100644
--- a/libavcodec/vima.c
+++ b/libavcodec/vima.c
@@ -145,7 +145,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
     if (pkt->size < 13)
         return AVERROR_INVALIDDATA;
 
-    init_get_bits(&gb, pkt->data, pkt->size * 8);
+    if ((ret = init_get_bits8(&gb, pkt->data, pkt->size)) < 0)
+        return ret;
 
     samples = get_bits_long(&gb, 32);
     if (samples == 0xffffffff) {



More information about the ffmpeg-cvslog mailing list