Commit bca4cafa authored by Clément Bœsch's avatar Clément Bœsch

lavfi/sine: switch to an AVOptions-based system.

parent 9ceb7bdf
...@@ -1688,11 +1688,7 @@ Generate an audio signal made of a sine wave with amplitude 1/8. ...@@ -1688,11 +1688,7 @@ Generate an audio signal made of a sine wave with amplitude 1/8.
The audio signal is bit-exact. The audio signal is bit-exact.
It accepts a list of options in the form of @var{key}=@var{value} pairs The filter accepts the following options:
separated by ":". If the option name is omitted, the first option is the
frequency and the second option is the beep factor.
The supported options are:
@table @option @table @option
......
...@@ -210,8 +210,6 @@ static const AVFilterPad sine_outputs[] = { ...@@ -210,8 +210,6 @@ static const AVFilterPad sine_outputs[] = {
{ NULL } { NULL }
}; };
static const char *const shorthand[] = { "frequency", "beep_factor", NULL };
AVFilter avfilter_asrc_sine = { AVFilter avfilter_asrc_sine = {
.name = "sine", .name = "sine",
.description = NULL_IF_CONFIG_SMALL("Generate sine wave audio signal."), .description = NULL_IF_CONFIG_SMALL("Generate sine wave audio signal."),
...@@ -222,5 +220,4 @@ AVFilter avfilter_asrc_sine = { ...@@ -222,5 +220,4 @@ AVFilter avfilter_asrc_sine = {
.inputs = NULL, .inputs = NULL,
.outputs = sine_outputs, .outputs = sine_outputs,
.priv_class = &sine_class, .priv_class = &sine_class,
.shorthand = shorthand,
}; };
...@@ -752,6 +752,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque ...@@ -752,6 +752,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
!strcmp(filter->filter->name, "settb" ) || !strcmp(filter->filter->name, "settb" ) ||
!strcmp(filter->filter->name, "showspectrum") || !strcmp(filter->filter->name, "showspectrum") ||
!strcmp(filter->filter->name, "silencedetect") || !strcmp(filter->filter->name, "silencedetect") ||
!strcmp(filter->filter->name, "sine" ) ||
!strcmp(filter->filter->name, "smartblur") || !strcmp(filter->filter->name, "smartblur") ||
!strcmp(filter->filter->name, "split" ) || !strcmp(filter->filter->name, "split" ) ||
!strcmp(filter->filter->name, "stereo3d" ) || !strcmp(filter->filter->name, "stereo3d" ) ||
......
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