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

Alex Converse git at videolan.org
Wed Sep 21 21:08:32 CEST 2011


ffmpeg | branch: release/0.8 | Alex Converse <alex.converse at gmail.com> | Fri Sep  9 14:50:33 2011 -0700| [3a0649ddebb9e23f8a3df44168d0afe9955c7b0e] | committer: Michael Niedermayer

cljr: init_get_bits size in bits instead of bytes
(cherry picked from commit 0c1f5b93d9b97c4cc3684ba91a040e90bfc760d2)

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

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

diff --git a/libavcodec/cljr.c b/libavcodec/cljr.c
index c9b0911..e94ad9b 100644
--- a/libavcodec/cljr.c
+++ b/libavcodec/cljr.c
@@ -67,7 +67,7 @@ static int decode_frame(AVCodecContext *avctx,
     p->pict_type= AV_PICTURE_TYPE_I;
     p->key_frame= 1;
 
-    init_get_bits(&a->gb, buf, buf_size);
+    init_get_bits(&a->gb, buf, buf_size * 8);
 
     for(y=0; y<avctx->height; y++){
         uint8_t *luma= &a->picture.data[0][ y*a->picture.linesize[0] ];



More information about the ffmpeg-cvslog mailing list