avcodec/hqx: use init_get_bits8()
authorPaul B Mahol <onemda@gmail.com>
Fri, 27 Feb 2015 09:30:13 +0000 (09:30 +0000)
committerPaul B Mahol <onemda@gmail.com>
Fri, 27 Feb 2015 09:30:13 +0000 (09:30 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/hqx.c

index 9b8b1ad..d7e605f 100644 (file)
@@ -590,8 +590,8 @@ static int hqx_decode_frame(AVCodecContext *avctx, void *data,
             av_log(avctx, AV_LOG_ERROR, "Invalid slice size.\n");
             break;
         }
-        ret = init_get_bits(&gb, src + slice_off[slice],
-                            (slice_off[slice + 1] - slice_off[slice]) * 8);
+        ret = init_get_bits8(&gb, src + slice_off[slice],
+                             slice_off[slice + 1] - slice_off[slice]);
         if (ret < 0)
             return ret;
         ret = decode_slice(ctx, pic, &gb, slice, decode_func);