summaryrefslogtreecommitdiff
path: root/libavcodec/mpc8.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-24 10:40:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-24 11:09:12 +0200
commit88ee2aa5ad0c3efdb6d5e186814992c2987b9ee3 (patch)
treed8cbf497a69beb00dc28454079060cf851e62782 /libavcodec/mpc8.c
parent3bbf3f7e42247b7a8b34b1e8cc891b59e1327bb8 (diff)
mpc8: make maxband check less picky.
Fixes Ticket1245 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpc8.c')
-rw-r--r--libavcodec/mpc8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpc8.c b/libavcodec/mpc8.c
index 3e32a65c0d..2808b58667 100644
--- a/libavcodec/mpc8.c
+++ b/libavcodec/mpc8.c
@@ -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;