diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-28 12:51:14 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-26 08:51:58 +0200 |
commit | 2b787ef766941a7565ac143f52d2f5954b9db6e9 (patch) | |
tree | 3ce4516245b9b9fb7760979d00d7111d3bd68b2f | |
parent | 3022f7487474ebb2812ae5e05b4be9b40431c20e (diff) | |
download | ffmpeg-2b787ef766941a7565ac143f52d2f5954b9db6e9.tar.gz |
avformat/dv: Set AVFMTCTX_NOHEADER flag
Audio streams are only added when a packet is read.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavformat/dv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c index 4d27c95d98..77a6ede37b 100644 --- a/libavformat/dv.c +++ b/libavformat/dv.c @@ -345,6 +345,9 @@ static int dv_init_demux(AVFormatContext *s, DVDemuxContext *c) c->vst->codecpar->bit_rate = 25000000; c->vst->start_time = 0; + /* Audio streams are added later as they are encountered. */ + s->ctx_flags |= AVFMTCTX_NOHEADER; + return 0; } |