summaryrefslogtreecommitdiff
path: root/libavfilter/af_anlms.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/af_anlms.c')
-rw-r--r--libavfilter/af_anlms.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libavfilter/af_anlms.c b/libavfilter/af_anlms.c
index ee5cd759ca..75bd969a83 100644
--- a/libavfilter/af_anlms.c
+++ b/libavfilter/af_anlms.c
@@ -281,6 +281,22 @@ static av_cold int init(AVFilterContext *ctx)
return 0;
}
+static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
+ char *res, int res_len, int flags)
+{
+ AudioNLMSContext *s = ctx->priv;
+ int ret;
+
+ if ( !strcmp(cmd, "mu") || !strcmp(cmd, "eps")
+ || !strcmp(cmd, "leakage") || !strcmp(cmd, "out_mode")) {
+ ret = av_opt_set(s, cmd, args, 0);
+ } else {
+ ret = AVERROR(ENOSYS);
+ }
+
+ return ret;
+}
+
static av_cold void uninit(AVFilterContext *ctx)
{
AudioNLMSContext *s = ctx->priv;
@@ -325,4 +341,5 @@ AVFilter ff_af_anlms = {
.inputs = inputs,
.outputs = outputs,
.flags = AVFILTER_FLAG_SLICE_THREADS,
+ .process_command = process_command,
};