diff mbox series

[FFmpeg-devel,09/39] avfilter/f_cue: Deduplicate AVClasses

Message ID AM7PR03MB66609E07A6605555E39B84C38FD79@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 601e3da1d506411c09149b4c8ebf0a19e2a84872
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/f_cue.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/f_cue.c b/libavfilter/f_cue.c
index e87b7a67c7..fd55e4bf5f 100644
--- a/libavfilter/f_cue.c
+++ b/libavfilter/f_cue.c
@@ -94,10 +94,9 @@  static const AVOption options[] = {
     { NULL }
 };
 
-#if CONFIG_CUE_FILTER
-#define cue_options options
-AVFILTER_DEFINE_CLASS(cue);
+AVFILTER_DEFINE_CLASS_EXT(cue_acue, "(a)cue", options);
 
+#if CONFIG_CUE_FILTER
 static const AVFilterPad cue_inputs[] = {
     {
         .name = "default",
@@ -115,8 +114,8 @@  static const AVFilterPad cue_outputs[] = {
 const AVFilter ff_vf_cue = {
     .name        = "cue",
     .description = NULL_IF_CONFIG_SMALL("Delay filtering to match a cue."),
+    .priv_class  = &cue_acue_class,
     .priv_size   = sizeof(CueContext),
-    .priv_class  = &cue_class,
     FILTER_INPUTS(cue_inputs),
     FILTER_OUTPUTS(cue_outputs),
     .activate    = activate,
@@ -124,9 +123,6 @@  const AVFilter ff_vf_cue = {
 #endif /* CONFIG_CUE_FILTER */
 
 #if CONFIG_ACUE_FILTER
-#define acue_options options
-AVFILTER_DEFINE_CLASS(acue);
-
 static const AVFilterPad acue_inputs[] = {
     {
         .name = "default",
@@ -144,8 +140,8 @@  static const AVFilterPad acue_outputs[] = {
 const AVFilter ff_af_acue = {
     .name        = "acue",
     .description = NULL_IF_CONFIG_SMALL("Delay filtering to match a cue."),
+    .priv_class  = &cue_acue_class,
     .priv_size   = sizeof(CueContext),
-    .priv_class  = &acue_class,
     FILTER_INPUTS(acue_inputs),
     FILTER_OUTPUTS(acue_outputs),
     .activate    = activate,