lavfi: set AVFilterLink.graph on link creation

There is no reason to delay this.
This commit is contained in:
Anton Khirnov
2024-08-02 13:55:21 +02:00
parent ca5c9e810a
commit 426e33c758
2 changed files with 1 additions and 2 deletions
-2
View File
@@ -1208,11 +1208,9 @@ static int graph_config_pointers(AVFilterGraph *graph, void *log_ctx)
for (i = 0; i < graph->nb_filters; i++) {
f = graph->filters[i];
for (j = 0; j < f->nb_inputs; j++) {
f->inputs[j]->graph = graph;
ff_link_internal(f->inputs[j])->age_index = -1;
}
for (j = 0; j < f->nb_outputs; j++) {
f->outputs[j]->graph = graph;
ff_link_internal(f->outputs[j])->age_index = -1;
}
if (!f->nb_outputs) {