aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-28 12:51:14 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-26 08:51:58 +0200
commit2b787ef766941a7565ac143f52d2f5954b9db6e9 (patch)
tree3ce4516245b9b9fb7760979d00d7111d3bd68b2f
parent3022f7487474ebb2812ae5e05b4be9b40431c20e (diff)
downloadffmpeg-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.c3
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;
}