diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-11-22 02:04:59 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-22 02:06:03 +0100 |
commit | 9cbe834dfd49c287e6f2033388d0cc5ac290717a (patch) | |
tree | 791739afa05f56f4c89fdce1a3c3fd03a7810f74 /libavformat | |
parent | fb7d70c1cd95529cbbbeeab5e9fa3b200ef2545c (diff) | |
download | ffmpeg-9cbe834dfd49c287e6f2033388d0cc5ac290717a.tar.gz |
avformat/avidec: Skip duplicate strf chunks
Fixes Ticket3119
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avidec.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |