aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 15:58:29 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:24 +0200
commitdc57da3b1ab82f3bbd7c2916396928539b68f4f5 (patch)
tree5ddcbb292c8371a1a22017695226481686ccdaea /libavfilter
parent8d06c2e7eb595050c8a1bb0b013110705ee50475 (diff)
downloadffmpeg-dc57da3b1ab82f3bbd7c2916396928539b68f4f5.tar.gz
avfilter/vf_pseudocolor: 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_pseudocolor.c7
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,
};