diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 23:30:37 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:29 +0200 |
commit | 78f5f8a20f842eb6843986653d31aae84a58c8f2 (patch) | |
tree | 5a22fbf0227ee8fa50917c9013b72375e474ad58 | |
parent | ee73c8bf6363c606445dbfca3986492c297dfd96 (diff) |
avfilter/vf_bwdif: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_bwdif.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_bwdif.c b/libavfilter/vf_bwdif.c index cb880c7241..51bb7e354d 100644 --- a/libavfilter/vf_bwdif.c +++ b/libavfilter/vf_bwdif.c @@ -299,8 +299,6 @@ static av_cold void uninit(AVFilterContext *ctx) av_frame_free(&yadif->next); } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUV444P, @@ -322,9 +320,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static int config_props(AVFilterLink *link) { AVFilterContext *ctx = link->src; @@ -411,6 +406,6 @@ const AVFilter ff_vf_bwdif = { .uninit = uninit, FILTER_INPUTS(avfilter_vf_bwdif_inputs), FILTER_OUTPUTS(avfilter_vf_bwdif_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS, }; |