diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 16:58:29 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 19:58:24 +0300 |
commit | dc57da3b1ab82f3bbd7c2916396928539b68f4f5 (patch) | |
tree | 5ddcbb292c8371a1a22017695226481686ccdaea /libavfilter/vf_pseudocolor.c | |
parent | 8d06c2e7eb595050c8a1bb0b013110705ee50475 (diff) |
avfilter/vf_pseudocolor: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_pseudocolor.c')
-rw-r--r-- | libavfilter/vf_pseudocolor.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_pseudocolor.c b/libavfilter/vf_pseudocolor.c index fd84a0a819..cb9c9c84cf 100644 --- a/libavfilter/vf_pseudocolor.c +++ b/libavfilter/vf_pseudocolor.c @@ -279,11 +279,6 @@ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_NONE }; -static int query_formats(AVFilterContext *ctx) -{ - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static inline float lerpf(float v0, float v1, float f) { return v0 + (v1 - v0) * f; @@ -924,7 +919,7 @@ const AVFilter ff_vf_pseudocolor = { .uninit = uninit, FILTER_INPUTS(inputs), FILTER_OUTPUTS(outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, .process_command = process_command, }; |