Commit 207fa224 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/mpc8: use init_get_bits8()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 7d169ba1
...@@ -261,7 +261,9 @@ static int mpc8_decode_frame(AVCodecContext * avctx, void *data, ...@@ -261,7 +261,9 @@ static int mpc8_decode_frame(AVCodecContext * avctx, void *data,
memset(c->Q, 0, sizeof(c->Q)); memset(c->Q, 0, sizeof(c->Q));
c->last_bits_used = 0; c->last_bits_used = 0;
} }
init_get_bits(gb, buf, buf_size * 8); if ((res = init_get_bits8(gb, buf, buf_size)) < 0)
return res;
skip_bits(gb, c->last_bits_used & 7); skip_bits(gb, c->last_bits_used & 7);
if(keyframe) if(keyframe)
......
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