avformat/avidec: Fix txts fmts parsing

Fixes: subtitle.avi from vlc/ticket/1162

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/250/merge
Michael Niedermayer 8 years ago
parent 0dea0114fb
commit 78f6ec32a3
  1. 3
      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);

Loading…
Cancel
Save