Commit 9cbe834d authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/avidec: Skip duplicate strf chunks

Fixes Ticket3119
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fb7d70c1
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment