[FFmpeg-devel] [PATCH 100/218] avfilter/vf_tmidequalizer: Use formats list instead of query function
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Thu Sep 30 16:40:41 EEST 2021
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavfilter/vf_tmidequalizer.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/libavfilter/vf_tmidequalizer.c b/libavfilter/vf_tmidequalizer.c
index 96b12f11a7..a51b88cbae 100644
--- a/libavfilter/vf_tmidequalizer.c
+++ b/libavfilter/vf_tmidequalizer.c
@@ -67,8 +67,6 @@ static const AVOption tmidequalizer_options[] = {
AVFILTER_DEFINE_CLASS(tmidequalizer);
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV440P,
AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P,
@@ -93,9 +91,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static void compute_contrast_function(const float *const histograms[256],
const float *const kernel,
int nb_frames, int radius, int hsize,
@@ -432,7 +427,7 @@ const AVFilter ff_vf_tmidequalizer = {
.uninit = uninit,
FILTER_INPUTS(tmidequalizer_inputs),
FILTER_OUTPUTS(tmidequalizer_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.priv_class = &tmidequalizer_class,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
};
--
2.30.2
More information about the ffmpeg-devel
mailing list