aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/cmdutils.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-03-25 05:00:11 +0100
committerAnton Khirnov <anton@khirnov.net>2023-04-09 15:47:45 +0200
commita996478e8c492215e021a22d7b197c255d05f725 (patch)
treeed3b9e170a65a4c51e8720532a1bdfe3dcde0bc8 /fftools/cmdutils.c
parentd96f2fbf76fd2587d8f9aa984591439cf38bfb0b (diff)
downloadffmpeg-a996478e8c492215e021a22d7b197c255d05f725.tar.gz
fftools/ffmpeg: simplify output stream initialization call graph
Several places in the code currently call init_output_stream_wrapper(), which in turn calls init_output_stream(), which then calls either enc_open() or init_output_stream_streamcopy(), followed by of_stream_init(), which tells the muxer the stream is ready for muxing. All except one of these callers are in the encoding code, which will be moved to ffmpeg_enc.c. Keeping this structure would then necessitate ffmpeg_enc.c calling back into the common code in ffmpeg.c, which would then just call ffmpeg_mux, thus making the already convoluted call chain even more so. Simplify the situation by using separate paths for filter-fed output streams (audio and video encoders) and others (subtitles, streamcopy, data, attachments).
Diffstat (limited to 'fftools/cmdutils.c')
0 files changed, 0 insertions, 0 deletions