diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 21:46:17 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:27 +0200 |
commit | 02057f4ff10786675320d25405e9225c9e70c292 (patch) | |
tree | 9cbcf447d44f159aa0577749ab3dada0a7762d92 /libavfilter/vf_hue.c | |
parent | db48d4234039e7653a684964ca29404ef1893afb (diff) | |
download | ffmpeg-02057f4ff10786675320d25405e9225c9e70c292.tar.gz |
avfilter/vf_hue: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_hue.c')
-rw-r--r-- | libavfilter/vf_hue.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c index a9f96a02f7..b56674873c 100644 --- a/libavfilter/vf_hue.c +++ b/libavfilter/vf_hue.c @@ -248,8 +248,6 @@ static av_cold void uninit(AVFilterContext *ctx) av_expr_free(hue->saturation_pexpr); } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P, @@ -263,8 +261,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_YUVA420P10, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} static int config_props(AVFilterLink *inlink) { @@ -520,7 +516,7 @@ const AVFilter ff_vf_hue = { .process_command = process_command, FILTER_INPUTS(hue_inputs), FILTER_OUTPUTS(hue_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &hue_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, }; |