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 16f1ef7..1c3aa26 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];