mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/wnv1: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
1634d2bcd1
commit
63cb546f0a
@ -88,7 +88,9 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
|
||||
for (i = 8; i < buf_size; i++)
|
||||
rbuf[i] = ff_reverse[buf[i]];
|
||||
init_get_bits(&l->gb, rbuf + 8, (buf_size - 8) * 8);
|
||||
|
||||
if ((ret = init_get_bits8(&l->gb, rbuf + 8, buf_size - 8)) < 0)
|
||||
return ret;
|
||||
|
||||
if (buf[2] >> 4 == 6)
|
||||
l->shift = 2;
|
||||
|
Loading…
Reference in New Issue
Block a user