diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-02-03 19:57:13 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-02-03 20:01:07 +0100 |
commit | 207fa224a0f776e4bfaefdf5e0e758d6d11dd157 (patch) | |
tree | 9058418b2bc78f1a8814f5e3a32ea7e0f9495200 /libavcodec | |
parent | 7d169ba1d88227a1dba52944d47884da0635206f (diff) | |
download | ffmpeg-streaming-207fa224a0f776e4bfaefdf5e0e758d6d11dd157.zip ffmpeg-streaming-207fa224a0f776e4bfaefdf5e0e758d6d11dd157.tar.gz |
avcodec/mpc8: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpc8.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mpc8.c b/libavcodec/mpc8.c index 8894457..80e0e9e 100644 --- a/libavcodec/mpc8.c +++ b/libavcodec/mpc8.c @@ -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) |