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