summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@gmail.com>2013-04-11 01:37:57 +0200
committerMatthieu Bouron <matthieu.bouron@gmail.com>2013-04-11 01:37:57 +0200
commitf43da3def7645b99d67846fa6d6175b4ece3e9e4 (patch)
tree676b5454c8278baa4f484bbdb202160301056e67
parenta5ce5ac9fb49f156c30524c466cd8a990d3830f1 (diff)
lavfi/aphaser: switch to AVOption-based system
-rw-r--r--doc/filters.texi3
-rw-r--r--libavfilter/af_aphaser.c3
-rw-r--r--libavfilter/avfilter.c1
3 files changed, 1 insertions, 6 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index f43415be4b..2669804efb 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -6343,9 +6343,6 @@ Add a phasing effect to the input audio.
A phaser filter creates series of peaks and troughs in the frequency spectrum.
The position of the peaks and troughs are modulated so that they vary over time, creating a sweeping effect.
-The filter accepts parameters as a list of @var{key}=@var{value}
-pairs, separated by ":".
-
A description of the accepted parameters follows.
@table @option
diff --git a/libavfilter/af_aphaser.c b/libavfilter/af_aphaser.c
index 141278fa20..d61715dd7e 100644
--- a/libavfilter/af_aphaser.c
+++ b/libavfilter/af_aphaser.c
@@ -344,8 +344,6 @@ static const AVFilterPad aphaser_outputs[] = {
{ NULL }
};
-static const char *const shorthand[] = { "in_gain", "out_gain", "delay", "decay", "speed", "type", NULL };
-
AVFilter avfilter_af_aphaser = {
.name = "aphaser",
.description = NULL_IF_CONFIG_SMALL("Add a phasing effect to the audio."),
@@ -356,5 +354,4 @@ AVFilter avfilter_af_aphaser = {
.inputs = aphaser_inputs,
.outputs = aphaser_outputs,
.priv_class = &aphaser_class,
- .shorthand = shorthand,
};
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 0b4fcb3e57..99924ed8a9 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -659,6 +659,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
!strcmp(filter->filter->name, "afade" ) ||
!strcmp(filter->filter->name, "aformat") ||
!strcmp(filter->filter->name, "apad" ) ||
+ !strcmp(filter->filter->name, "aphaser" ) ||
!strcmp(filter->filter->name, "ass") ||
!strcmp(filter->filter->name, "blackframe") ||
!strcmp(filter->filter->name, "blend" ) ||