[FFmpeg-cvslog] indeo2: init_get_bits size in bits instead of bytes

Alex Converse git at videolan.org
Sun Dec 25 01:36:00 CET 2011


ffmpeg | branch: release/0.6 | Alex Converse <alex.converse at gmail.com> | Fri Sep  9 13:24:19 2011 -0700| [23999c45bc559d8ce56f1f0f07468b3180fd48a0] | committer: Reinhard Tartler

indeo2: init_get_bits size in bits instead of bytes

(cherry picked from commit 68ca330cbd479111db9cb7649d7530ad59f04cc8)

Signed-off-by: Anton Khirnov <anton at khirnov.net>
Signed-off-by: Reinhard Tartler <siretart at tauware.de>

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

 libavcodec/indeo2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/indeo2.c b/libavcodec/indeo2.c
index a3d6c80..7060578 100644
--- a/libavcodec/indeo2.c
+++ b/libavcodec/indeo2.c
@@ -165,7 +165,7 @@ static int ir2_decode_frame(AVCodecContext *avctx,
 #endif
     start = 48; /* hardcoded for now */
 
-    init_get_bits(&s->gb, buf + start, buf_size - start);
+    init_get_bits(&s->gb, buf + start, (buf_size - start) * 8);
 
     if (s->decode_delta) { /* intraframe */
         ir2_decode_plane(s, avctx->width, avctx->height,



More information about the ffmpeg-cvslog mailing list