mpc8: make maxband check less picky.

Fixes Ticket1245

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-04-24 10:40:00 +02:00
parent 3bbf3f7e42
commit 88ee2aa5ad
1 changed files with 1 additions and 1 deletions

View File

@ -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;