fftools/ffmpeg_opt: move opening output files into a new file

ffmpeg_opt.c currently contains code for
- parsing the options provided on the command line
- opening and initializing input files based on these options
- opening and initializing output files based on these options

The code dealing with each of these is for the most part disjoint, so it
makes sense to move them to separate files. Beyond reducing the quite
considerable size of ffmpeg_opt.c, this will also allow exposing muxer
internals (currently private to ffmpeg_mux.c) to the initialization
code, thus removing the awkward separation currently in place.
This commit is contained in:
Anton Khirnov
2022-10-13 12:24:43 +02:00
parent 965bff37b6
commit 18d6c07267
4 changed files with 1977 additions and 1906 deletions

1887
fftools/ffmpeg_mux_init.c Normal file

File diff suppressed because it is too large Load Diff