diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 14:40:42 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:01:04 +0200 |
commit | 6d473dfa9594f761c3856c1a629eea47420d081e (patch) | |
tree | 7660ab38082741c15a471c2303c58e0009bad9f5 | |
parent | b42e66553d13fa173ca430362a7aa3c8b23769e4 (diff) | |
download | ffmpeg-6d473dfa9594f761c3856c1a629eea47420d081e.tar.gz |
avfilter/vf_atadenoise: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_atadenoise.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_atadenoise.c b/libavfilter/vf_atadenoise.c index 40f983cd9e..3a47c32cec 100644 --- a/libavfilter/vf_atadenoise.c +++ b/libavfilter/vf_atadenoise.c @@ -89,8 +89,6 @@ static const AVOption atadenoise_options[] = { AVFILTER_DEFINE_CLASS(atadenoise); -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pixel_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9, @@ -120,8 +118,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, pixel_fmts); -} static av_cold int init(AVFilterContext *ctx) { @@ -576,7 +572,7 @@ const AVFilter ff_vf_atadenoise = { .uninit = uninit, FILTER_INPUTS(inputs), FILTER_OUTPUTS(outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pixel_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS, .process_command = process_command, }; |