diff mbox

[FFmpeg-devel,1/4] lavfi/zscale: make use of AVFILTER_DEFINE_CLASS

Message ID 1551842307-3607-1-git-send-email-mypopydev@gmail.com
State Accepted
Commit 26dbe88ea37beee64909bc320aaf932b8db13aee
Headers show

Commit Message

Jun Zhao March 6, 2019, 3:18 a.m. UTC
From: Jun Zhao <barryjzhao@tencent.com>

use AVFILTER_DEFINE_CLASS for defining the filter classes

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

Patch

diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c
index 6e1d36c..f030927 100644
--- a/libavfilter/vf_zscale.c
+++ b/libavfilter/vf_zscale.c
@@ -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[] = {
     {