diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-02-03 22:16:30 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-02-03 22:16:30 +0300 |
commit | f09afb4a90b2ee14577b4bedc9f16ac2b5dfcf72 (patch) | |
tree | 156c012220731f65d2374c0f43037e2e9b45a1d3 | |
parent | 6a6e20bfdf6acd882780b3312ba2e891642ac5b3 (diff) |
avcodec/mpc7: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-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 d13316b120..e09f1b604f 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 */ |