diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-12-11 13:22:36 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-04-13 12:07:54 +0200 |
commit | b1a984cb4956e73e6b2bcc6463f4f1d9ba8b5a29 (patch) | |
tree | 356a40c07b6c9ef2884417b6bdaa7fe9dc7f2b3d /fftools/ffmpeg_opt.c | |
parent | 16aea9a38bbe1113b12f814def1d13251e76ecac (diff) | |
download | ffmpeg-b1a984cb4956e73e6b2bcc6463f4f1d9ba8b5a29.tar.gz |
fftools/ffmpeg: store the output file index in OutputFile
Use it to simplify check_init_output_file(). Will allow further
simplifications in the following commits.
Diffstat (limited to 'fftools/ffmpeg_opt.c')
-rw-r--r-- | fftools/ffmpeg_opt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 8e217af4ab..daecba9e57 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -2314,6 +2314,7 @@ static int open_output_file(OptionsContext *o, const char *filename) of = ALLOC_ARRAY_ELEM(output_files, nb_output_files); + of->index = nb_output_files - 1; of->ost_index = nb_output_streams; of->recording_time = o->recording_time; of->start_time = o->start_time; |