1
0
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:
Paul B Mahol 2015-02-03 15:49:34 +00:00
parent 1634d2bcd1
commit 63cb546f0a

View File

@ -88,7 +88,9 @@ static int decode_frame(AVCodecContext *avctx,
for (i = 8; i < buf_size; i++) for (i = 8; i < buf_size; i++)
rbuf[i] = ff_reverse[buf[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) if (buf[2] >> 4 == 6)
l->shift = 2; l->shift = 2;