You've already forked FFmpeg
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user