From b1a984cb4956e73e6b2bcc6463f4f1d9ba8b5a29 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 11 Dec 2021 13:22:36 +0100 Subject: 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. --- fftools/ffmpeg_opt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'fftools/ffmpeg_opt.c') 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; -- cgit v1.2.3