[FFmpeg-cvslog] avfilter/split: Deduplicate AVClasses

Andreas Rheinhardt git at videolan.org
Sun Sep 19 06:13:55 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Sep 10 22:35:42 2021 +0200| [a9f1b3db60ddd75872a99798a8458bd208e4c95e] | committer: Andreas Rheinhardt

avfilter/split: Deduplicate AVClasses

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a9f1b3db60ddd75872a99798a8458bd208e4c95e
---

 libavfilter/split.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/libavfilter/split.c b/libavfilter/split.c
index b02584d0ab..a08ddf72b1 100644
--- a/libavfilter/split.c
+++ b/libavfilter/split.c
@@ -94,11 +94,7 @@ static const AVOption options[] = {
     { NULL }
 };
 
-#define split_options options
-AVFILTER_DEFINE_CLASS(split);
-
-#define asplit_options options
-AVFILTER_DEFINE_CLASS(asplit);
+AVFILTER_DEFINE_CLASS_EXT(split, "(a)split", options);
 
 static const AVFilterPad avfilter_vf_split_inputs[] = {
     {
@@ -130,8 +126,8 @@ static const AVFilterPad avfilter_af_asplit_inputs[] = {
 const AVFilter ff_af_asplit = {
     .name        = "asplit",
     .description = NULL_IF_CONFIG_SMALL("Pass on the audio input to N audio outputs."),
+    .priv_class  = &split_class,
     .priv_size   = sizeof(SplitContext),
-    .priv_class  = &asplit_class,
     .init        = split_init,
     FILTER_INPUTS(avfilter_af_asplit_inputs),
     .outputs     = NULL,



More information about the ffmpeg-cvslog mailing list