diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-10-11 13:38:17 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-10-18 13:57:42 +0200 |
commit | 965bff37b6181b9db248a0deef7e2643d0ef9721 (patch) | |
tree | 2b9910ec2c87293f1cffcfa1535ff59317baca1c /fftools/ffmpeg.h | |
parent | 731246ae8fbe14beed6c1a361bfb6963c9f59c51 (diff) | |
download | ffmpeg-965bff37b6181b9db248a0deef7e2643d0ef9721.tar.gz |
fftools/ffmpeg: move some stream initialization code to ffmpeg_mux
The code in question is muxing-specific and so belongs there. This will
allow make some objects private to the muxer in future commits.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r-- | fftools/ffmpeg.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 632b7c0e86..5030f72fe5 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -720,8 +720,14 @@ int hwaccel_decode_init(AVCodecContext *avctx); int of_muxer_init(OutputFile *of, AVFormatContext *fc, AVDictionary *opts, int64_t limit_filesize, int thread_queue_size); -/* open the muxer when all the streams are initialized */ -int of_check_init(OutputFile *of); + +/* + * Initialize muxing state for the given stream, should be called + * after the codec/streamcopy setup has been done. + * + * Open the muxer once all the streams have been initialized. + */ +int of_stream_init(OutputFile *of, OutputStream *ost); int of_write_trailer(OutputFile *of); void of_close(OutputFile **pof); |