avcodec/webp: use init_get_bits8()
authorPaul B Mahol <onemda@gmail.com>
Tue, 3 Feb 2015 14:58:22 +0000 (14:58 +0000)
committerPaul B Mahol <onemda@gmail.com>
Wed, 4 Feb 2015 09:45:41 +0000 (09:45 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/webp.c

index 4b1c8e7..e0f7239 100644 (file)
@@ -1106,7 +1106,7 @@ static int vp8_lossless_decode_frame(AVCodecContext *avctx, AVFrame *p,
         avctx->pix_fmt = AV_PIX_FMT_ARGB;
     }
 
-    ret = init_get_bits(&s->gb, data_start, data_size * 8);
+    ret = init_get_bits8(&s->gb, data_start, data_size);
     if (ret < 0)
         return ret;