aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-30 21:20:54 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-31 02:32:42 +0200
commit78f6ec32a37215f21e1efb299e233f1c0e031a0b (patch)
tree81c0d0316ed0c3218e80ba3b1c32a3e14d5603d5
parent0dea0114fb29a8c533d7c36f20df7a7440605758 (diff)
downloadffmpeg-78f6ec32a37215f21e1efb299e233f1c0e031a0b.tar.gz
avformat/avidec: Fix txts fmts parsing
Fixes: subtitle.avi from vlc/ticket/1162 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/avidec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 4e694fe447..b6ef0ac62d 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -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);