diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 17:36:53 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:25 +0200 |
commit | 4cb0343abe106a73bce6f754b151e8abcb241aed (patch) | |
tree | d69cd3f1e4cb7fb211d9757d22fc2201c55c925f | |
parent | 6ee0ec11a37850d3f1f30b632b88392b9a69d18e (diff) | |
download | ffmpeg-4cb0343abe106a73bce6f754b151e8abcb241aed.tar.gz |
avfilter/vf_ssim: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_ssim.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c index ba0f18df8a..bc6671e49b 100644 --- a/libavfilter/vf_ssim.c +++ b/libavfilter/vf_ssim.c @@ -420,8 +420,6 @@ static av_cold int init(AVFilterContext *ctx) return 0; } -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, @@ -435,9 +433,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) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format); @@ -596,6 +591,6 @@ const AVFilter ff_vf_ssim = { .priv_class = &ssim_class, FILTER_INPUTS(ssim_inputs), FILTER_OUTPUTS(ssim_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS, }; |