mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-03 05:22:10 +00:00
avcodec/flashsv: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
1a244c22ea
commit
22c00962c2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user