[FFmpeg-cvslog] avfilter/af_asoftclip: add support for commands
Paul B Mahol
git at videolan.org
Sun Feb 9 12:00:57 EET 2020
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Feb 9 10:59:20 2020 +0100| [3f24e744ad3a490687b7091ad42f3dd232643a93] | committer: Paul B Mahol
avfilter/af_asoftclip: add support for commands
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3f24e744ad3a490687b7091ad42f3dd232643a93
---
doc/filters.texi | 4 ++++
libavfilter/af_asoftclip.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/doc/filters.texi b/doc/filters.texi
index 6f941dc191..d0ba9bf925 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -2257,6 +2257,10 @@ It accepts the following values:
Set additional parameter which controls sigmoid function.
@end table
+ at subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
@section asr
Automatic Speech Recognition
diff --git a/libavfilter/af_asoftclip.c b/libavfilter/af_asoftclip.c
index ad3846a7fb..e9e3666ef6 100644
--- a/libavfilter/af_asoftclip.c
+++ b/libavfilter/af_asoftclip.c
@@ -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,
};
More information about the ffmpeg-cvslog
mailing list