mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
lavfi: set AVFilterLink.graph on link creation
There is no reason to delay this. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
07dba79218
commit
7e9cd2e966
@ -185,6 +185,7 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad,
|
||||
link->srcpad = &src->output_pads[srcpad];
|
||||
link->dstpad = &dst->input_pads[dstpad];
|
||||
link->type = src->output_pads[srcpad].type;
|
||||
link->graph = src->graph;
|
||||
av_assert0(AV_PIX_FMT_NONE == -1 && AV_SAMPLE_FMT_NONE == -1);
|
||||
link->format = -1;
|
||||
link->colorspace = AVCOL_SPC_UNSPECIFIED;
|
||||
|
@ -1306,11 +1306,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) {
|
||||
|
Loading…
Reference in New Issue
Block a user