From c75439a93bd3785fe98c6bd313b08c4b52d3f274 Mon Sep 17 00:00:00 2001 From: dariusz-f Date: Wed, 27 Aug 2025 08:24:21 +0000 Subject: [PATCH] Update libavformat/apvdec.c Increase au_size limit by 4 times to fit more complex videos. Signed-off-by: dariusz-f --- libavformat/apvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/apvdec.c b/libavformat/apvdec.c index 4a5592d98c..f8e3cf58cd 100644 --- a/libavformat/apvdec.c +++ b/libavformat/apvdec.c @@ -207,7 +207,7 @@ static int apv_read_packet(AVFormatContext *s, AVPacket *pkt) au_size = avio_rb32(s->pb); if (au_size == 0 && avio_feof(s->pb)) return AVERROR_EOF; - if (au_size == 0 || au_size > UINT32_MAX) { + if (au_size < 24 || au_size > 1 << 26) { av_log(s, AV_LOG_ERROR, "APV AU has invalid size: %"PRIu32"\n", au_size); return AVERROR_INVALIDDATA;