You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avconv: create the complex filtergraphs earlier
Since global options are processed before all the other options now, we do not have to try creating the complex filtergraphs several times anymore, it is enough to do it once after the input files are opened.
This commit is contained in:
12
avconv_opt.c
12
avconv_opt.c
@@ -1418,11 +1418,6 @@ static int open_output_file(OptionsContext *o, const char *filename)
|
|||||||
AVDictionary *unused_opts = NULL;
|
AVDictionary *unused_opts = NULL;
|
||||||
AVDictionaryEntry *e = NULL;
|
AVDictionaryEntry *e = NULL;
|
||||||
|
|
||||||
if (configure_complex_filters() < 0) {
|
|
||||||
av_log(NULL, AV_LOG_FATAL, "Error configuring filters.\n");
|
|
||||||
exit_program(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
GROW_ARRAY(output_files, nb_output_files);
|
GROW_ARRAY(output_files, nb_output_files);
|
||||||
of = av_mallocz(sizeof(*of));
|
of = av_mallocz(sizeof(*of));
|
||||||
if (!of)
|
if (!of)
|
||||||
@@ -2232,6 +2227,13 @@ int avconv_parse_options(int argc, char **argv)
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* create the complex filtergraphs */
|
||||||
|
ret = configure_complex_filters();
|
||||||
|
if (ret < 0) {
|
||||||
|
av_log(NULL, AV_LOG_FATAL, "Error configuring filters.\n");
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
/* open output files */
|
/* open output files */
|
||||||
ret = open_files(&octx.groups[GROUP_OUTFILE], "output", open_output_file);
|
ret = open_files(&octx.groups[GROUP_OUTFILE], "output", open_output_file);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
Reference in New Issue
Block a user