lavfi/zscale: make use of AVFILTER_DEFINE_CLASS
authorJun Zhao <barryjzhao@tencent.com>
Tue, 5 Mar 2019 11:10:06 +0000 (19:10 +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_zscale.c

index 6e1d36c..f030927 100644 (file)
@@ -859,13 +859,7 @@ static const AVOption zscale_options[] = {
     { NULL }
 };
 
-static const AVClass zscale_class = {
-    .class_name       = "zscale",
-    .item_name        = av_default_item_name,
-    .option           = zscale_options,
-    .version          = LIBAVUTIL_VERSION_INT,
-    .category         = AV_CLASS_CATEGORY_FILTER,
-};
+AVFILTER_DEFINE_CLASS(zscale);
 
 static const AVFilterPad avfilter_vf_zscale_inputs[] = {
     {