Commit 88ee2aa5 authored by Michael Niedermayer's avatar Michael Niedermayer

mpc8: make maxband check less picky.

Fixes Ticket1245
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3bbf3f7e
......@@ -272,7 +272,7 @@ static int mpc8_decode_frame(AVCodecContext * avctx, void *data,
maxband = c->last_max_band + get_vlc2(gb, band_vlc.table, MPC8_BANDS_BITS, 2);
if(maxband > 32) maxband -= 33;
}
if(maxband > c->maxbands)
if(maxband >= BANDS)
return AVERROR_INVALIDDATA;
c->last_max_band = maxband;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment