From 56d3e840f612dcf1980cf66cb388ace93c567ae5 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 10 Sep 2021 22:59:18 +0200 Subject: avfilter/vf_premultiply: Deduplicate AVClasses Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_premultiply.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'libavfilter/vf_premultiply.c') diff --git a/libavfilter/vf_premultiply.c b/libavfilter/vf_premultiply.c index 70a5bf3b11..a76c08405c 100644 --- a/libavfilter/vf_premultiply.c +++ b/libavfilter/vf_premultiply.c @@ -60,8 +60,7 @@ static const AVOption options[] = { { NULL } }; -#define premultiply_options options -AVFILTER_DEFINE_CLASS(premultiply); +AVFILTER_DEFINE_CLASS_EXT(premultiply, "(un)premultiply", options); static int query_formats(AVFilterContext *ctx) { @@ -843,12 +842,10 @@ const AVFilter ff_vf_premultiply = { #if CONFIG_UNPREMULTIPLY_FILTER -#define unpremultiply_options options -AVFILTER_DEFINE_CLASS(unpremultiply); - const AVFilter ff_vf_unpremultiply = { .name = "unpremultiply", .description = NULL_IF_CONFIG_SMALL("UnPreMultiply first stream with first plane of second stream."), + .priv_class = &premultiply_class, .priv_size = sizeof(PreMultiplyContext), .init = init, .uninit = uninit, @@ -856,7 +853,6 @@ const AVFilter ff_vf_unpremultiply = { .activate = activate, .inputs = NULL, FILTER_OUTPUTS(premultiply_outputs), - .priv_class = &unpremultiply_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_DYNAMIC_INPUTS | AVFILTER_FLAG_SLICE_THREADS, -- cgit v1.2.3