History

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

Clément Bœsch committed 13 years ago

Commit bca4caf1 parent 9ceb7bd3 files · +2 −8Browse files

Showing the changes to libavfilter (2 of 3 files). Show all

Unified · Split

2 files
  1. libavfilter/asrc_sine.c +0 −3
  2. libavfilter/avfilter.c +1 −0
libavfilter/asrc_sine.c+0−3
@@ -210,8 +210,6 @@ static const AVFilterPad sine_outputs[] = { · 209 unmodified lines
210210 { NULL }
211211 };
212212
213−static const char *const shorthand[] = { "frequency", "beep_factor", NULL };
214−
215213 AVFilter avfilter_asrc_sine = {
216214 .name = "sine",
217215 .description = NULL_IF_CONFIG_SMALL("Generate sine wave audio signal."),
@@ -222,5 +220,4 @@ AVFilter avfilter_asrc_sine = { · 4 unmodified lines
222220 .inputs = NULL,
223221 .outputs = sine_outputs,
224222 .priv_class = &sine_class,
225− .shorthand = shorthand,
226223 };
libavfilter/avfilter.c+1−0
@@ -752,6 +752,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 751 unmodified lines
752752 !strcmp(filter->filter->name, "settb" ) ||
753753 !strcmp(filter->filter->name, "showspectrum") ||
754754 !strcmp(filter->filter->name, "silencedetect") ||
755+ !strcmp(filter->filter->name, "sine" ) ||
755756 !strcmp(filter->filter->name, "smartblur") ||
756757 !strcmp(filter->filter->name, "split" ) ||
757758 !strcmp(filter->filter->name, "stereo3d" ) ||

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t