You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/mpc8: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user