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.h | |
parent | 009ef35d384c3df22d8a8be7416dc9d532e91c52 (diff) |
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.h')
-rw-r--r-- | fftools/ffmpeg.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 391a35cf50..2798fc830c 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -583,9 +583,12 @@ typedef struct OutputStream { int64_t error[4]; } OutputStream; +typedef struct Muxer Muxer; + typedef struct OutputFile { int index; + Muxer *mux; const AVOutputFormat *format; AVFormatContext *ctx; @@ -596,8 +599,6 @@ typedef struct OutputFile { uint64_t limit_filesize; /* filesize limit expressed in bytes */ int shortest; - - int header_written; } OutputFile; extern InputStream **input_streams; @@ -696,6 +697,7 @@ int hw_device_setup_for_filter(FilterGraph *fg); int hwaccel_decode_init(AVCodecContext *avctx); +int of_muxer_init(OutputFile *of); /* open the muxer when all the streams are initialized */ int of_check_init(OutputFile *of); int of_write_trailer(OutputFile *of); |