aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_stereowiden.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-12-27 21:03:29 +0100
committerPaul B Mahol <onemda@gmail.com>2019-12-27 21:03:29 +0100
commit5fb37598ad5c17e3829829d03845106f4c6c4084 (patch)
tree4bfc67121fda2fadf7035ab8f2f53490f1076cf4 /libavfilter/af_stereowiden.c
parent954637805d64609d1ca370f2cf12d15dfb41b395 (diff)
downloadffmpeg-5fb37598ad5c17e3829829d03845106f4c6c4084.tar.gz
avfilter/af_stereowiden: add support for commands
Diffstat (limited to 'libavfilter/af_stereowiden.c')
-rw-r--r--libavfilter/af_stereowiden.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libavfilter/af_stereowiden.c b/libavfilter/af_stereowiden.c
index d23c8dba75..251f08438e 100644
--- a/libavfilter/af_stereowiden.c
+++ b/libavfilter/af_stereowiden.c
@@ -39,13 +39,14 @@ typedef struct StereoWidenContext {
} StereoWidenContext;
#define OFFSET(x) offsetof(StereoWidenContext, x)
-#define A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
+#define A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
+#define AT AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
static const AVOption stereowiden_options[] = {
{ "delay", "set delay time", OFFSET(delay), AV_OPT_TYPE_FLOAT, {.dbl=20}, 1, 100, A },
- { "feedback", "set feedback gain", OFFSET(feedback), AV_OPT_TYPE_FLOAT, {.dbl=.3}, 0, 0.9, A },
- { "crossfeed", "set cross feed", OFFSET(crossfeed), AV_OPT_TYPE_FLOAT, {.dbl=.3}, 0, 0.8, A },
- { "drymix", "set dry-mix", OFFSET(drymix), AV_OPT_TYPE_FLOAT, {.dbl=.8}, 0, 1.0, A },
+ { "feedback", "set feedback gain", OFFSET(feedback), AV_OPT_TYPE_FLOAT, {.dbl=.3}, 0, 0.9, AT },
+ { "crossfeed", "set cross feed", OFFSET(crossfeed), AV_OPT_TYPE_FLOAT, {.dbl=.3}, 0, 0.8, AT },
+ { "drymix", "set dry-mix", OFFSET(drymix), AV_OPT_TYPE_FLOAT, {.dbl=.8}, 0, 1.0, AT },
{ NULL }
};
@@ -165,4 +166,5 @@ AVFilter ff_af_stereowiden = {
.inputs = inputs,
.outputs = outputs,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
+ .process_command = ff_filter_process_command,
};