summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showspectrum.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-10 22:10:56 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-10 23:16:02 +0200
commit4964ec2cd4822eb4d9b34e83b0a77c0592c7c192 (patch)
treec5b41ed7457781bbb8e92050053033c7da49fac6 /libavfilter/avf_showspectrum.c
parent1b1688bfc640ab73f05fbe99bfbb400dced5eef6 (diff)
lavfi/showspectrum: switch to an AVOptions-based system.
Diffstat (limited to 'libavfilter/avf_showspectrum.c')
-rw-r--r--libavfilter/avf_showspectrum.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c
index 364ee6c378..058f22c919 100644
--- a/libavfilter/avf_showspectrum.c
+++ b/libavfilter/avf_showspectrum.c
@@ -97,20 +97,6 @@ static const struct {
{ 1, 1, 0, 0 }
};
-static av_cold int init(AVFilterContext *ctx, const char *args)
-{
- ShowSpectrumContext *showspectrum = ctx->priv;
- int err;
-
- showspectrum->class = &showspectrum_class;
- av_opt_set_defaults(showspectrum);
-
- if ((err = av_set_options_string(showspectrum, args, "=", ":")) < 0)
- return err;
-
- return 0;
-}
-
static av_cold void uninit(AVFilterContext *ctx)
{
ShowSpectrumContext *showspectrum = ctx->priv;
@@ -505,7 +491,6 @@ static const AVFilterPad showspectrum_outputs[] = {
AVFilter avfilter_avf_showspectrum = {
.name = "showspectrum",
.description = NULL_IF_CONFIG_SMALL("Convert input audio to a spectrum video output."),
- .init = init,
.uninit = uninit,
.query_formats = query_formats,
.priv_size = sizeof(ShowSpectrumContext),