Browse Source

mpc8: make maxband check less picky.

Fixes Ticket1245

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 14 years ago
parent
commit
88ee2aa5ad
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mpc8.c

+ 1
- 1
libavcodec/mpc8.c 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;



Loading…
Cancel
Save