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.
This commit is contained in:
Anton Khirnov
2021-12-11 13:22:36 +01:00
parent 16aea9a38b
commit b1a984cb49
3 changed files with 8 additions and 5 deletions

View File

@@ -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;