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>
pull/188/merge
Michael Niedermayer 9 years ago
parent 959c7dad88
commit 92dfeb5c31
  1. 2
      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];

Loading…
Cancel
Save