diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-02-03 20:16:30 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-02-03 20:16:30 +0100 |
commit | f09afb4a90b2ee14577b4bedc9f16ac2b5dfcf72 (patch) | |
tree | 156c012220731f65d2374c0f43037e2e9b45a1d3 /libavcodec | |
parent | 6a6e20bfdf6acd882780b3312ba2e891642ac5b3 (diff) | |
download | ffmpeg-streaming-f09afb4a90b2ee14577b4bedc9f16ac2b5dfcf72.zip ffmpeg-streaming-f09afb4a90b2ee14577b4bedc9f16ac2b5dfcf72.tar.gz |
avcodec/mpc7: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpc7.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpc7.c b/libavcodec/mpc7.c index d13316b..e09f1b6 100644 --- a/libavcodec/mpc7.c +++ b/libavcodec/mpc7.c @@ -231,7 +231,8 @@ static int mpc7_decode_frame(AVCodecContext * avctx, void *data, return AVERROR(ENOMEM); c->bdsp.bswap_buf((uint32_t *) c->bits, (const uint32_t *) buf, buf_size >> 2); - init_get_bits(&gb, c->bits, buf_size * 8); + if ((ret = init_get_bits8(&gb, c->bits, buf_size)) < 0) + return ret; skip_bits_long(&gb, skip); /* read subband indexes */ |