Commit 78f6ec32 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/avidec: Fix txts fmts parsing

Fixes: subtitle.avi from vlc/ticket/1162
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 0dea0114
......@@ -727,7 +727,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
break;
case MKTAG('s', 't', 'r', 'f'):
/* stream header */
if (!size)
if (!size && (codec_type == AVMEDIA_TYPE_AUDIO ||
codec_type == AVMEDIA_TYPE_VIDEO))
break;
if (stream_index >= (unsigned)s->nb_streams || avi->dv_demux) {
avio_skip(pb, size);
......
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