summaryrefslogtreecommitdiff
path: root/libavfilter/vf_stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/vf_stack.c')
-rw-r--r--libavfilter/vf_stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_stack.c b/libavfilter/vf_stack.c
index 38e5aa098b..48f3e4fbfd 100644
--- a/libavfilter/vf_stack.c
+++ b/libavfilter/vf_stack.c
@@ -123,7 +123,7 @@ static av_cold int init(AVFilterContext *ctx)
if (!pad.name)
return AVERROR(ENOMEM);
- if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
+ if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
av_freep(&pad.name);
return ret;
}