[FFmpeg-cvslog] avfilter/vf_maskedminmax: Deduplicate AVClasses
Andreas Rheinhardt
git at videolan.org
Sun Sep 19 06:14:08 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Sep 10 22:53:01 2021 +0200| [31adb960b700abe516b8ba86d02511611f2a7432] | committer: Andreas Rheinhardt
avfilter/vf_maskedminmax: Deduplicate AVClasses
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=31adb960b700abe516b8ba86d02511611f2a7432
---
libavfilter/vf_maskedminmax.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/libavfilter/vf_maskedminmax.c b/libavfilter/vf_maskedminmax.c
index f0c499a0d5..6c7f6de211 100644
--- a/libavfilter/vf_maskedminmax.c
+++ b/libavfilter/vf_maskedminmax.c
@@ -323,13 +323,12 @@ static const AVFilterPad maskedminmax_outputs[] = {
},
};
-#define maskedmin_options maskedminmax_options
-AVFILTER_DEFINE_CLASS(maskedmin);
+AVFILTER_DEFINE_CLASS_EXT(maskedminmax, "masked(min|max)", maskedminmax_options);
const AVFilter ff_vf_maskedmin = {
.name = "maskedmin",
.description = NULL_IF_CONFIG_SMALL("Apply filtering with minimum difference of two streams."),
- .priv_class = &maskedmin_class,
+ .priv_class = &maskedminmax_class,
.priv_size = sizeof(MaskedMinMaxContext),
.init = maskedmin_init,
.uninit = uninit,
@@ -341,13 +340,10 @@ const AVFilter ff_vf_maskedmin = {
.process_command = ff_filter_process_command,
};
-#define maskedmax_options maskedminmax_options
-AVFILTER_DEFINE_CLASS(maskedmax);
-
const AVFilter ff_vf_maskedmax = {
.name = "maskedmax",
.description = NULL_IF_CONFIG_SMALL("Apply filtering with maximum difference of two streams."),
- .priv_class = &maskedmax_class,
+ .priv_class = &maskedminmax_class,
.priv_size = sizeof(MaskedMinMaxContext),
.uninit = uninit,
.activate = activate,
More information about the ffmpeg-cvslog
mailing list