You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/avidec: Fix txts fmts parsing
Fixes: subtitle.avi from vlc/ticket/1162 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user