diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 21:59:39 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:27 +0200 |
commit | 4ccf72f5516724cdceb30b8ec8c7cb3c983ee184 (patch) | |
tree | 43b095ae6d347f604a7b6439cca33c8a328d8256 /libavfilter/vf_fftdnoiz.c | |
parent | 03c47952478e86acecbd48f01ef740b70689f7dd (diff) | |
download | ffmpeg-4ccf72f5516724cdceb30b8ec8c7cb3c983ee184.tar.gz |
avfilter/vf_fftdnoiz: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_fftdnoiz.c')
-rw-r--r-- | libavfilter/vf_fftdnoiz.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_fftdnoiz.c b/libavfilter/vf_fftdnoiz.c index e5b1156b9b..4e0e1fdc48 100644 --- a/libavfilter/vf_fftdnoiz.c +++ b/libavfilter/vf_fftdnoiz.c @@ -107,8 +107,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, @@ -135,8 +133,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_GBRAP, AV_PIX_FMT_GBRAP10, AV_PIX_FMT_GBRAP12, AV_PIX_FMT_GBRAP16, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} typedef struct ThreadData { float *src, *dst; @@ -687,7 +683,7 @@ const AVFilter ff_vf_fftdnoiz = { .uninit = uninit, FILTER_INPUTS(fftdnoiz_inputs), FILTER_OUTPUTS(fftdnoiz_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &fftdnoiz_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL, }; |