aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpc8.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2012-06-06 13:09:02 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-06-06 13:09:02 +0200
commitbb321245777a89426aa2131887497bd5eead1d2e (patch)
treefac526a8d6280129238bec05551b34ac750ecf6e /libavcodec/mpc8.c
parentc8a11014b673ebc6946db6fcd20009d330c57c48 (diff)
downloadandroid_external_ffmpeg-bb321245777a89426aa2131887497bd5eead1d2e.tar.gz
android_external_ffmpeg-bb321245777a89426aa2131887497bd5eead1d2e.tar.bz2
android_external_ffmpeg-bb321245777a89426aa2131887497bd5eead1d2e.zip
Fix maxband limit when decoding mpc8.
Fixes yesterday's merge of Kostya's fix for ticket #409.
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 9dacc29766..3b98b5f709 100644
--- a/libavcodec/mpc8.c
+++ b/libavcodec/mpc8.c
@@ -276,7 +276,7 @@ static int mpc8_decode_frame(AVCodecContext * avctx, void *data,
if(maxband > 32) maxband -= 33;
}
- if(maxband > c->maxbands + 1 || maxband >= BANDS) {
+ if(maxband > c->maxbands + 1) {
av_log(avctx, AV_LOG_ERROR, "maxband %d too large\n",maxband);
return AVERROR_INVALIDDATA;
}