Fix maxband limit when decoding mpc8.
Fixes yesterday's merge of Kostya's fix for ticket #409.
This commit is contained in:
parent
c8a11014b6
commit
bb32124577
@ -276,7 +276,7 @@ static int mpc8_decode_frame(AVCodecContext * avctx, void *data,
|
|||||||
if(maxband > 32) maxband -= 33;
|
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);
|
av_log(avctx, AV_LOG_ERROR, "maxband %d too large\n",maxband);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user