Commit 6008b5ab authored by Paul B Mahol's avatar Paul B Mahol

lavfi/format: make use of AVFILTER_DEFINE_CLASS

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent e457f2cf
...@@ -109,12 +109,8 @@ static int query_formats_format(AVFilterContext *ctx) ...@@ -109,12 +109,8 @@ static int query_formats_format(AVFilterContext *ctx)
return 0; return 0;
} }
static const AVClass format_class = { #define format_options options
.class_name = "format", AVFILTER_DEFINE_CLASS(format);
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
static const AVFilterPad avfilter_vf_format_inputs[] = { static const AVFilterPad avfilter_vf_format_inputs[] = {
{ {
...@@ -156,12 +152,8 @@ static int query_formats_noformat(AVFilterContext *ctx) ...@@ -156,12 +152,8 @@ static int query_formats_noformat(AVFilterContext *ctx)
return 0; return 0;
} }
static const AVClass noformat_class = { #define noformat_options options
.class_name = "noformat", AVFILTER_DEFINE_CLASS(noformat);
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
static const AVFilterPad avfilter_vf_noformat_inputs[] = { static const AVFilterPad avfilter_vf_noformat_inputs[] = {
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment