avcodec/mpc8: use init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2017-02-03 19:57:13 +01:00
parent 7d169ba1d8
commit 207fa224a0

View File

@ -261,7 +261,9 @@ static int mpc8_decode_frame(AVCodecContext * avctx, void *data,
memset(c->Q, 0, sizeof(c->Q));
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);
if(keyframe)