mss4: use init_get_bits8()
authorPaul B Mahol <onemda@gmail.com>
Thu, 11 Apr 2013 10:06:01 +0000 (10:06 +0000)
committerPaul B Mahol <onemda@gmail.com>
Thu, 11 Apr 2013 10:40:15 +0000 (10:40 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/mss4.c

index 391805f..aad321a 100644 (file)
@@ -573,7 +573,7 @@ static int mss4_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
             ff_mss34_gen_quant_mat(c->quant_mat[i], quality, !i);
     }
 
-    init_get_bits(&gb, buf + HEADER_SIZE, (buf_size - HEADER_SIZE) * 8);
+    init_get_bits8(&gb, buf + HEADER_SIZE, (buf_size - HEADER_SIZE));
 
     mb_width  = FFALIGN(width,  16) >> 4;
     mb_height = FFALIGN(height, 16) >> 4;