diff mbox series

[FFmpeg-devel,06/39] avfilter/af_asupercut: Deduplicate AVClasses

Message ID AM7PR03MB6660DF5AD1D05A346BB7ED018FD79@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 3000ac48d517297119985be454ccb75eabd14af2
Headers show
Series [FFmpeg-devel,01/39] avfilter/vf_maskedminmax: Simplify init | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 11, 2021, 11:40 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/af_asupercut.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/af_asupercut.c b/libavfilter/af_asupercut.c
index bd8b1cf44a..29f24c7055 100644
--- a/libavfilter/af_asupercut.c
+++ b/libavfilter/af_asupercut.c
@@ -399,15 +399,15 @@  static const AVOption asuperpass_asuperstop_options[] = {
     { NULL }
 };
 
-#define asuperpass_options asuperpass_asuperstop_options
-AVFILTER_DEFINE_CLASS(asuperpass);
+AVFILTER_DEFINE_CLASS_EXT(asuperpass_asuperstop, "asuperpass/asuperstop",
+                          asuperpass_asuperstop_options);
 
 const AVFilter ff_af_asuperpass = {
     .name            = "asuperpass",
     .description     = NULL_IF_CONFIG_SMALL("Apply high order Butterworth band-pass filter."),
+    .priv_class      = &asuperpass_asuperstop_class,
     .query_formats   = query_formats,
     .priv_size       = sizeof(ASuperCutContext),
-    .priv_class      = &asuperpass_class,
     .uninit          = uninit,
     FILTER_INPUTS(inputs),
     FILTER_OUTPUTS(outputs),
@@ -416,15 +416,12 @@  const AVFilter ff_af_asuperpass = {
                        AVFILTER_FLAG_SLICE_THREADS,
 };
 
-#define asuperstop_options asuperpass_asuperstop_options
-AVFILTER_DEFINE_CLASS(asuperstop);
-
 const AVFilter ff_af_asuperstop = {
     .name            = "asuperstop",
     .description     = NULL_IF_CONFIG_SMALL("Apply high order Butterworth band-stop filter."),
+    .priv_class      = &asuperpass_asuperstop_class,
     .query_formats   = query_formats,
     .priv_size       = sizeof(ASuperCutContext),
-    .priv_class      = &asuperstop_class,
     .uninit          = uninit,
     FILTER_INPUTS(inputs),
     FILTER_OUTPUTS(outputs),