diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 17:03:40 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:25 +0200 |
commit | 6efc8a8ee18c51fa843075ca0575971ce35c8abd (patch) | |
tree | 3f4ed4aad06629c93ce79336749b6483e1839d1f /libavfilter | |
parent | b89e0e470f9d453617ccaf25bd30c2eeb91b58f5 (diff) | |
download | ffmpeg-6efc8a8ee18c51fa843075ca0575971ce35c8abd.tar.gz |
avfilter/vf_vif: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_vif.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_vif.c b/libavfilter/vf_vif.c index 01851a01bc..20002c51b9 100644 --- a/libavfilter/vf_vif.c +++ b/libavfilter/vf_vif.c @@ -469,8 +469,6 @@ static AVFrame *do_vif(AVFilterContext *ctx, AVFrame *main, const AVFrame *ref) return main; } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9, AV_PIX_FMT_GRAY10, AV_PIX_FMT_GRAY12, AV_PIX_FMT_GRAY14, AV_PIX_FMT_GRAY16, @@ -483,9 +481,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static int config_input_ref(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; @@ -642,6 +637,6 @@ const AVFilter ff_vf_vif = { .activate = activate, FILTER_INPUTS(vif_inputs), FILTER_OUTPUTS(vif_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS, }; |