[FFmpeg-devel] [PATCH/RFC]lavf/avidec: Do not fail for very large idx1 tags
Carl Eugen Hoyos
cehoyos at ag.or.at
Mon Oct 17 19:29:42 EEST 2016
Hi!
Attached patch fixes the file mentioned in github pull request 197,
it can be played with MPlayer, vlc, xine and totem.
Please comment, Carl Eugen
-------------- next part --------------
From 646a765749e08bb48f74488ad9f539cbc736673c Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date: Mon, 17 Oct 2016 18:25:48 +0200
Subject: [PATCH] lavf/avidec: Do not fail for very large idx1 tags.
Fixes demuxing the sample file from github pull request 197,
the size of its idx1 tag is 6171936 bytes, followed by a JUNK
tag of 9505704 bytes.
---
libavformat/avidec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 2c81267..b291625 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -993,6 +993,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
avi->movi_end = avi->fsize;
goto end_of_header;
}
+ /* Do not fail for very large idx1 tags */
+ case MKTAG('i', 'd', 'x', '1'):
/* skip tag */
size += (size & 1);
avio_skip(pb, size);
--
1.7.10.4
More information about the ffmpeg-devel
mailing list