summaryrefslogtreecommitdiff
path: root/libavfilter/af_lv2.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/af_lv2.c')
-rw-r--r--libavfilter/af_lv2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_lv2.c b/libavfilter/af_lv2.c
index 83ff5e7861..a7f069206d 100644
--- a/libavfilter/af_lv2.c
+++ b/libavfilter/af_lv2.c
@@ -464,7 +464,7 @@ static av_cold int init(AVFilterContext *ctx)
return AVERROR(ENOMEM);
pad.filter_frame = filter_frame;
- if (ff_insert_inpad(ctx, ctx->nb_inputs, &pad) < 0) {
+ if (ff_append_inpad(ctx, &pad) < 0) {
av_freep(&pad.name);
return AVERROR(ENOMEM);
}