]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/af_asupercut: Deduplicate options
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 3 Jan 2021 15:49:36 +0000 (16:49 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 8 Jan 2021 04:06:12 +0000 (05:06 +0100)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/af_asupercut.c

index 89f4cf0ed06f01f3d844313e8fc5be80729847ee..d5c9a75d5dfe26e51446aa9d9ce97b3c287b74f5 100644 (file)
@@ -405,7 +405,7 @@ AVFilter ff_af_asubcut = {
                        AVFILTER_FLAG_SLICE_THREADS,
 };
 
-static const AVOption asuperpass_options[] = {
+static const AVOption asuperpass_asuperstop_options[] = {
     { "centerf","set center frequency", OFFSET(cutoff), AV_OPT_TYPE_DOUBLE, {.dbl=1000}, 2, 999999, FLAGS },
     { "order",  "set filter order",     OFFSET(order),  AV_OPT_TYPE_INT,    {.i64=4},    4,     20, FLAGS },
     { "qfactor","set Q-factor",         OFFSET(qfactor),AV_OPT_TYPE_DOUBLE, {.dbl=1.},0.01,   100., FLAGS },
@@ -413,6 +413,7 @@ static const AVOption asuperpass_options[] = {
     { NULL }
 };
 
+#define asuperpass_options asuperpass_asuperstop_options
 AVFILTER_DEFINE_CLASS(asuperpass);
 
 AVFilter ff_af_asuperpass = {
@@ -429,14 +430,7 @@ AVFilter ff_af_asuperpass = {
                        AVFILTER_FLAG_SLICE_THREADS,
 };
 
-static const AVOption asuperstop_options[] = {
-    { "centerf","set center frequency", OFFSET(cutoff), AV_OPT_TYPE_DOUBLE, {.dbl=1000}, 2, 999999, FLAGS },
-    { "order",  "set filter order",     OFFSET(order),  AV_OPT_TYPE_INT,    {.i64=4},    4,     20, FLAGS },
-    { "qfactor","set Q-factor",         OFFSET(qfactor),AV_OPT_TYPE_DOUBLE, {.dbl=1.},0.01,   100., FLAGS },
-    { "level",  "set input level",      OFFSET(level),  AV_OPT_TYPE_DOUBLE, {.dbl=1.},   0.,    2., FLAGS },
-    { NULL }
-};
-
+#define asuperstop_options asuperpass_asuperstop_options
 AVFILTER_DEFINE_CLASS(asuperstop);
 
 AVFilter ff_af_asuperstop = {