diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-04-05 12:10:21 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-04-09 10:34:18 +0200 |
commit | 3d01996b242ee588bcb27d61d6351439b8849260 (patch) | |
tree | 412e971c420ea7c05575f1ce733e7d64885b9a54 /fftools/ffmpeg_opt.c | |
parent | 243a51490a85923c29ea9c276786e7b7d29cff0d (diff) | |
download | ffmpeg-3d01996b242ee588bcb27d61d6351439b8849260.tar.gz |
fftools/ffmpeg_filter: change processing order in fg_finalise_bindings()
First bind all inputs in all filtergraphs, only then check that all
outputs are bound.
Needed by the following commit.
Diffstat (limited to 'fftools/ffmpeg_opt.c')
-rw-r--r-- | fftools/ffmpeg_opt.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index f764da1ed4..6526e8e3e8 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -1264,12 +1264,10 @@ int ffmpeg_parse_options(int argc, char **argv, Scheduler *sch) } // bind unbound filtegraph inputs/outputs and check consistency - for (int i = 0; i < nb_filtergraphs; i++) { - ret = fg_finalise_bindings(filtergraphs[i]); - if (ret < 0) { - errmsg = "binding filtergraph inputs/outputs"; - goto fail; - } + ret = fg_finalise_bindings(); + if (ret < 0) { + errmsg = "binding filtergraph inputs/outputs"; + goto fail; } correct_input_start_times(); |