1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-09-16 08:36:51 +02:00

Update libavformat/apvdec.c

Increase au_size limit by 4 times to fit more complex videos.

Signed-off-by: dariusz-f <dariusz-f@noreply.code.ffmpeg.org>
This commit is contained in:
dariusz-f
2025-08-27 08:24:21 +00:00
committed by Mark Thompson
parent 002a940ca6
commit c75439a93b

View File

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