|
|
|
@@ -1215,8 +1215,8 @@ static av_cold int cook_decode_init(AVCodecContext *avctx) |
|
|
|
|
|
|
|
q->num_subpackets++; |
|
|
|
s++; |
|
|
|
if (s > MAX_SUBPACKETS) { |
|
|
|
avpriv_request_sample(avctx, "subpackets > %d", MAX_SUBPACKETS); |
|
|
|
if (s > FFMIN(MAX_SUBPACKETS, avctx->block_align)) { |
|
|
|
avpriv_request_sample(avctx, "subpackets > %d", FFMIN(MAX_SUBPACKETS, avctx->block_align)); |
|
|
|
return AVERROR_PATCHWELCOME; |
|
|
|
} |
|
|
|
} |
|
|
|
|