diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 23:27:57 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:28 +0200 |
commit | 6d5d8be55eab0f832091c93f0cd274d0437330e1 (patch) | |
tree | 59d13bad9c388923801c98fd5743da9bc94ab4da | |
parent | 112b6cf6ffd592ac141c868d5e98b59b2a24e14f (diff) | |
download | ffmpeg-6d5d8be55eab0f832091c93f0cd274d0437330e1.tar.gz |
avfilter/vf_colorchannelmixer: Use formats list instead of query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_colorchannelmixer.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_colorchannelmixer.c b/libavfilter/vf_colorchannelmixer.c index 4453d901bd..43c6a27609 100644 --- a/libavfilter/vf_colorchannelmixer.c +++ b/libavfilter/vf_colorchannelmixer.c @@ -90,8 +90,6 @@ static const AVOption colorchannelmixer_options[] = { AVFILTER_DEFINE_CLASS(colorchannelmixer); -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24, AV_PIX_FMT_RGBA, AV_PIX_FMT_BGRA, @@ -109,9 +107,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static float lerpf(float v0, float v1, float f) { return v0 + (v1 - v0) * f; @@ -782,7 +777,7 @@ const AVFilter ff_vf_colorchannelmixer = { .uninit = uninit, FILTER_INPUTS(colorchannelmixer_inputs), FILTER_OUTPUTS(colorchannelmixer_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, }; |