diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-12-11 14:03:18 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-07-23 11:53:19 +0200 |
commit | 6a23be92d2a0b1f5100afa0fd3ff33e8510b6eb3 (patch) | |
tree | 247f8268be9dd85eab4235c1075c762c0d15f4e4 /fftools/ffmpeg_opt.c | |
parent | 009ef35d384c3df22d8a8be7416dc9d532e91c52 (diff) | |
download | ffmpeg-6a23be92d2a0b1f5100afa0fd3ff33e8510b6eb3.tar.gz |
fftools/ffmpeg_mux: add private muxer context
Move header_written into it, which is not (and should not be) used by
any code outside of ffmpeg_mux.
In the future this context will contain more muxer-private state that
should not be visible to other code.
Diffstat (limited to 'fftools/ffmpeg_opt.c')
-rw-r--r-- | fftools/ffmpeg_opt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index ac7fe3b27a..eb2ec2ef07 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -3006,6 +3006,12 @@ loop_end: exit_program(1); } + err = of_muxer_init(of); + if (err < 0) { + av_log(NULL, AV_LOG_FATAL, "Error initializing internal muxing state\n"); + exit_program(1); + } + return 0; } |