From 9cbe834dfd49c287e6f2033388d0cc5ac290717a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 22 Nov 2013 02:04:59 +0100 Subject: [PATCH] avformat/avidec: Skip duplicate strf chunks Fixes Ticket3119 Signed-off-by: Michael Niedermayer --- libavformat/avidec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 8028ecbf26..6debfbe760 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -623,6 +623,10 @@ static int avi_read_header(AVFormatContext *s) if (cur_pos < list_end) size = FFMIN(size, list_end - cur_pos); st = s->streams[stream_index]; + if (st->codec->codec_type != AVMEDIA_TYPE_UNKNOWN) { + avio_skip(pb, size); + break; + } switch (codec_type) { case AVMEDIA_TYPE_VIDEO: if (amv_file_format) {