Commit 63cb546f authored by Paul B Mahol's avatar Paul B Mahol

avcodec/wnv1: use init_get_bits8()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 1634d2bc
......@@ -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;
......
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