[FFmpeg-cvslog] avformat/wtvdec: Set AVFMTCTX_NOHEADER

Michael Niedermayer git at videolan.org
Sat Mar 19 22:59:50 CET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Mar 19 22:37:52 2016 +0100| [92dfeb5c31009b93a1b6cabe596c0548f54e5fc3] | committer: Michael Niedermayer

avformat/wtvdec: Set AVFMTCTX_NOHEADER

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 at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=92dfeb5c31009b93a1b6cabe596c0548f54e5fc3
---

 libavformat/wtvdec.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c
index 16f1ef7..1c3aa26 100644
--- a/libavformat/wtvdec.c
+++ b/libavformat/wtvdec.c
@@ -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];



More information about the ffmpeg-cvslog mailing list