]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/af_asoftclip: add support for commands
authorPaul B Mahol <onemda@gmail.com>
Sun, 9 Feb 2020 09:59:20 +0000 (10:59 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sun, 9 Feb 2020 09:59:20 +0000 (10:59 +0100)
doc/filters.texi
libavfilter/af_asoftclip.c

index 6f941dc191937cbb76cf0035cd918532a9eeafc5..d0ba9bf9255a45b8d64f0bf89d292c97c31e999d 100644 (file)
@@ -2257,6 +2257,10 @@ It accepts the following values:
 Set additional parameter which controls sigmoid function.
 @end table
 
+@subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @section asr
 Automatic Speech Recognition
 
index ad3846a7fbd0e7cededc2f7c482b9997e7f98939..e9e3666ef6cf15617064914ef3abb4ad118fd868 100644 (file)
@@ -46,7 +46,7 @@ typedef struct ASoftClipContext {
 } ASoftClipContext;
 
 #define OFFSET(x) offsetof(ASoftClipContext, 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|AV_OPT_FLAG_RUNTIME_PARAM
 
 static const AVOption asoftclip_options[] = {
     { "type", "set softclip type", OFFSET(type), AV_OPT_TYPE_INT,    {.i64=0},          0, NB_TYPES-1, A, "types" },
@@ -313,6 +313,7 @@ AVFilter ff_af_asoftclip = {
     .priv_class     = &asoftclip_class,
     .inputs         = inputs,
     .outputs        = outputs,
+    .process_command = ff_filter_process_command,
     .flags          = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC |
                       AVFILTER_FLAG_SLICE_THREADS,
 };