[FFmpeg-devel] [PATCH 2/4] lavfi/tonemap: make use of AVFILTER_DEFINE_CLASS

Jun Zhao mypopydev at gmail.com
Wed Mar 6 05:18:25 EET 2019


From: Jun Zhao <barryjzhao at tencent.com>

use AVFILTER_DEFINE_CLASS for defining the filter classes

Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
---
 libavfilter/vf_tonemap.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/libavfilter/vf_tonemap.c b/libavfilter/vf_tonemap.c
index 98a2c4b..efd4af5 100644
--- a/libavfilter/vf_tonemap.c
+++ b/libavfilter/vf_tonemap.c
@@ -287,13 +287,7 @@ static const AVOption tonemap_options[] = {
     { NULL }
 };
 
-static const AVClass tonemap_class = {
-    .class_name       = "tonemap",
-    .item_name        = av_default_item_name,
-    .option           = tonemap_options,
-    .version          = LIBAVUTIL_VERSION_INT,
-    .category         = AV_CLASS_CATEGORY_FILTER,
-};
+AVFILTER_DEFINE_CLASS(tonemap);
 
 static const AVFilterPad tonemap_inputs[] = {
     {
-- 
1.7.1



More information about the ffmpeg-devel mailing list