From a20f3238be9381518ef8e7fcbb2a4dc7b6acdc93 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Mon, 17 Oct 2016 18:25:48 +0200 Subject: 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 2c81267e12..b29162515b 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); -- cgit v1.2.3