]> git.sesse.net Git - ffmpeg/commitdiff
avformat/wtvdec: Set AVFMTCTX_NOHEADER
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 19 Mar 2016 21:37:52 +0000 (22:37 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 19 Mar 2016 21:58:34 +0000 (22:58 +0100)
Needed for noStreams.wtv unless something else forces continued parsing (like looking for more than 1
frame in attachments)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/wtvdec.c

index 16f1ef7b9ce643d8f5e90268c7cbecd522532dd1..1c3aa26f4a2034eaac5de3b32c1e85db1480cbf5 100644 (file)
@@ -1005,6 +1005,8 @@ static int read_header(AVFormatContext *s)
         wtvfile_close(pb);
     }
 
+    s->ctx_flags |= AVFMTCTX_NOHEADER; // Needed for noStreams.wtv
+
     /* read seek index */
     if (s->nb_streams) {
         AVStream *st = s->streams[0];