History

lavfi: set AVFilterLink.graph on link creation

There is no reason to delay this.

Anton Khirnov committed 2 years ago

Commit 426e33c1 parent ca5c9e82 files · +1 −2Browse files

Showing the changes to libavfilter/avfilter.c (1 of 2 files). Show all

Unified · Split

libavfilter/avfilter.c+1−0
@@ -185,6 +185,7 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad, · 184 unmodified lines
185 link->srcpad = &src->output_pads[srcpad];185 link->srcpad = &src->output_pads[srcpad];
186 link->dstpad = &dst->input_pads[dstpad];186 link->dstpad = &dst->input_pads[dstpad];
187 link->type = src->output_pads[srcpad].type;187 link->type = src->output_pads[srcpad].type;
188 link->graph = src->graph;
188 av_assert0(AV_PIX_FMT_NONE == -1 && AV_SAMPLE_FMT_NONE == -1);189 av_assert0(AV_PIX_FMT_NONE == -1 && AV_SAMPLE_FMT_NONE == -1);
189 link->format = -1;190 link->format = -1;
190 link->colorspace = AVCOL_SPC_UNSPECIFIED;191 link->colorspace = AVCOL_SPC_UNSPECIFIED;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t