From 9498bc7c3218fd1cdf7f513cb2fe0f93d1d6a354 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 22 Dec 2022 17:04:29 +0100 Subject: [PATCH] avfilter/af_afir: make dry/wet runtime options --- libavfilter/af_afir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_afir.c b/libavfilter/af_afir.c index bfb27e07d9..6790cf3727 100644 --- a/libavfilter/af_afir.c +++ b/libavfilter/af_afir.c @@ -660,8 +660,8 @@ static int process_command(AVFilterContext *ctx, #define OFFSET(x) offsetof(AudioFIRContext, x) static const AVOption afir_options[] = { - { "dry", "set dry gain", OFFSET(dry_gain), AV_OPT_TYPE_FLOAT, {.dbl=1}, 0, 10, AF }, - { "wet", "set wet gain", OFFSET(wet_gain), AV_OPT_TYPE_FLOAT, {.dbl=1}, 0, 10, AF }, + { "dry", "set dry gain", OFFSET(dry_gain), AV_OPT_TYPE_FLOAT, {.dbl=1}, 0, 10, AFR }, + { "wet", "set wet gain", OFFSET(wet_gain), AV_OPT_TYPE_FLOAT, {.dbl=1}, 0, 10, AFR }, { "length", "set IR length", OFFSET(length), AV_OPT_TYPE_FLOAT, {.dbl=1}, 0, 1, AF }, { "gtype", "set IR auto gain type",OFFSET(gtype), AV_OPT_TYPE_INT, {.i64=0}, -1, 4, AF, "gtype" }, { "none", "without auto gain", 0, AV_OPT_TYPE_CONST, {.i64=-1}, 0, 0, AF, "gtype" },