diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-10-14 10:57:19 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-10-18 13:57:43 +0200 |
commit | 7ef7a22251b852faab9404c85399ba8ac5dfbdc3 (patch) | |
tree | e05f8d71130e2e3e1a98bd86fe1dd44ab118fdee /fftools/ffmpeg.h | |
parent | 0baed07f745ec6bad9ea0fa28cd09b8e6a33bd20 (diff) | |
download | ffmpeg-7ef7a22251b852faab9404c85399ba8ac5dfbdc3.tar.gz |
fftools/ffmpeg: remove the output_streams global
Replace it with an array of streams in each OutputFile. This is a more
accurate reflection of the actual relationship between OutputStream and
OutputFile. This is easier to handle and will allow further
simplifications in future commits.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r-- | fftools/ffmpeg.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 20eb6e2aa9..0af824b9b9 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -619,10 +619,11 @@ typedef struct OutputFile { const AVOutputFormat *format; const char *url; + OutputStream **streams; + int nb_streams; + SyncQueue *sq_encode; - int nb_streams; - int ost_index; /* index of the first stream in output_streams */ int64_t recording_time; ///< desired length of the resulting file in microseconds == AV_TIME_BASE units int64_t start_time; ///< start time in microseconds == AV_TIME_BASE units @@ -635,8 +636,6 @@ extern int nb_input_streams; extern InputFile **input_files; extern int nb_input_files; -extern OutputStream **output_streams; -extern int nb_output_streams; extern OutputFile **output_files; extern int nb_output_files; |