diff options
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpc8.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpc8.c b/libavcodec/mpc8.c index a126fc8..b386642 100644 --- a/libavcodec/mpc8.c +++ b/libavcodec/mpc8.c @@ -266,6 +266,8 @@ static int mpc8_decode_frame(AVCodecContext * avctx, maxband = c->last_max_band + get_vlc2(gb, band_vlc.table, MPC8_BANDS_BITS, 2); if(maxband > 32) maxband -= 33; } + if(maxband > c->maxbands) + return AVERROR_INVALIDDATA; c->last_max_band = maxband; /* read subband indexes */ |