summaryrefslogtreecommitdiff
path: root/libavfilter/vf_tonemap.c
diff options
context:
space:
mode:
authorJun Zhao <barryjzhao@tencent.com>2019-03-05 19:14:33 +0800
committerJun Zhao <barryjzhao@tencent.com>2019-03-08 09:38:09 +0800
commit96451477b9115fb426016a152b3d40d2000c8549 (patch)
treed742e36e327b786b8ad3aac0da06833e463e5436 /libavfilter/vf_tonemap.c
parent26dbe88ea37beee64909bc320aaf932b8db13aee (diff)
downloadffmpeg-96451477b9115fb426016a152b3d40d2000c8549.tar.gz
lavfi/tonemap: make use of AVFILTER_DEFINE_CLASS
use AVFILTER_DEFINE_CLASS for defining the filter classes Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavfilter/vf_tonemap.c')
-rw-r--r--libavfilter/vf_tonemap.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavfilter/vf_tonemap.c b/libavfilter/vf_tonemap.c
index 98a2c4bd23..efd4af5466 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[] = {
{