cljr: init_get_bits size in bits instead of bytes
authorAlex Converse <alex.converse@gmail.com>
Fri, 9 Sep 2011 21:50:33 +0000 (14:50 -0700)
committerReinhard Tartler <siretart@tauware.de>
Mon, 26 Sep 2011 17:26:32 +0000 (19:26 +0200)
(cherry picked from commit 0c1f5b93d9b97c4cc3684ba91a040e90bfc760d2)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/cljr.c

index e2b01e2..b83919e 100644 (file)
@@ -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] ];