lavfi/tonemap: make use of AVFILTER_DEFINE_CLASS
authorJun Zhao <barryjzhao@tencent.com>
Tue, 5 Mar 2019 11:14:33 +0000 (19:14 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Fri, 8 Mar 2019 01:38:09 +0000 (09:38 +0800)
use AVFILTER_DEFINE_CLASS for defining the filter classes

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
libavfilter/vf_tonemap.c

index 98a2c4b..efd4af5 100644 (file)
@@ -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[] = {
     {