Commit 22c00962 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/flashsv: use init_get_bits8()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 1a244c22
......@@ -255,7 +255,8 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
if (buf_size < 4)
return -1;
init_get_bits(&gb, avpkt->data, buf_size * 8);
if ((ret = init_get_bits(&gb, avpkt->data, buf_size)) < 0)
return ret;
/* start to parse the bitstream */
s->block_width = 16 * (get_bits(&gb, 4) + 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment