diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-03-19 22:37:52 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-03-19 22:58:34 +0100 |
commit | 92dfeb5c31009b93a1b6cabe596c0548f54e5fc3 (patch) | |
tree | f0f5197db33c37b55369d80db1ba38b54c8733ef /libavformat/wtvdec.c | |
parent | 959c7dad88b63b721d55646ce17f7f90a46ab651 (diff) | |
download | ffmpeg-92dfeb5c31009b93a1b6cabe596c0548f54e5fc3.tar.gz |
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@niedermayer.cc>
Diffstat (limited to 'libavformat/wtvdec.c')
-rw-r--r-- | libavformat/wtvdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c index 16f1ef7b9c..1c3aa26f4a 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]; |