[FFmpeg-cvslog] avformat/dv: Set AVFMTCTX_NOHEADER flag
Andreas Rheinhardt
git at videolan.org
Sun Sep 26 10:02:58 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Aug 28 12:51:14 2021 +0200| [2b787ef766941a7565ac143f52d2f5954b9db6e9] | committer: Andreas Rheinhardt
avformat/dv: Set AVFMTCTX_NOHEADER flag
Audio streams are only added when a packet is read.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2b787ef766941a7565ac143f52d2f5954b9db6e9
---
libavformat/dv.c | 3 +++
1 file changed, 3 insertions(+)
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;
}
More information about the ffmpeg-cvslog
mailing list