[FFmpeg-devel] [PATCH 1/4] lavfi/zscale: make use of AVFILTER_DEFINE_CLASS
Jun Zhao
mypopydev at gmail.com
Wed Mar 6 05:18:24 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_zscale.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
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[] = {
{
--
1.7.1
More information about the ffmpeg-devel
mailing list