Commit f43da3de authored by Matthieu Bouron's avatar Matthieu Bouron

lavfi/aphaser: switch to AVOption-based system

parent a5ce5ac9
...@@ -6343,9 +6343,6 @@ Add a phasing effect to the input audio. ...@@ -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. 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 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. A description of the accepted parameters follows.
@table @option @table @option
......
...@@ -344,8 +344,6 @@ static const AVFilterPad aphaser_outputs[] = { ...@@ -344,8 +344,6 @@ static const AVFilterPad aphaser_outputs[] = {
{ NULL } { NULL }
}; };
static const char *const shorthand[] = { "in_gain", "out_gain", "delay", "decay", "speed", "type", NULL };
AVFilter avfilter_af_aphaser = { AVFilter avfilter_af_aphaser = {
.name = "aphaser", .name = "aphaser",
.description = NULL_IF_CONFIG_SMALL("Add a phasing effect to the audio."), .description = NULL_IF_CONFIG_SMALL("Add a phasing effect to the audio."),
...@@ -356,5 +354,4 @@ AVFilter avfilter_af_aphaser = { ...@@ -356,5 +354,4 @@ AVFilter avfilter_af_aphaser = {
.inputs = aphaser_inputs, .inputs = aphaser_inputs,
.outputs = aphaser_outputs, .outputs = aphaser_outputs,
.priv_class = &aphaser_class, .priv_class = &aphaser_class,
.shorthand = shorthand,
}; };
...@@ -659,6 +659,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque ...@@ -659,6 +659,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
!strcmp(filter->filter->name, "afade" ) || !strcmp(filter->filter->name, "afade" ) ||
!strcmp(filter->filter->name, "aformat") || !strcmp(filter->filter->name, "aformat") ||
!strcmp(filter->filter->name, "apad" ) || !strcmp(filter->filter->name, "apad" ) ||
!strcmp(filter->filter->name, "aphaser" ) ||
!strcmp(filter->filter->name, "ass") || !strcmp(filter->filter->name, "ass") ||
!strcmp(filter->filter->name, "blackframe") || !strcmp(filter->filter->name, "blackframe") ||
!strcmp(filter->filter->name, "blend" ) || !strcmp(filter->filter->name, "blend" ) ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment