[FFmpeg-devel] [PATCH 093/218] avfilter/vf_vibrance: Use formats list instead of query function
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Thu Sep 30 16:40:34 EEST 2021
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavfilter/vf_vibrance.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/libavfilter/vf_vibrance.c b/libavfilter/vf_vibrance.c
index b1f9ecba52..ea58bfc875 100644
--- a/libavfilter/vf_vibrance.c
+++ b/libavfilter/vf_vibrance.c
@@ -292,8 +292,6 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame)
return ff_filter_frame(avctx->outputs[0], frame);
}
-static av_cold int query_formats(AVFilterContext *avctx)
-{
static const enum AVPixelFormat pixel_fmts[] = {
AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24,
AV_PIX_FMT_RGBA, AV_PIX_FMT_BGRA,
@@ -309,9 +307,6 @@ static av_cold int query_formats(AVFilterContext *avctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(avctx, pixel_fmts);
-}
-
static av_cold int config_input(AVFilterLink *inlink)
{
AVFilterContext *avctx = inlink->dst;
@@ -377,7 +372,7 @@ const AVFilter ff_vf_vibrance = {
.priv_class = &vibrance_class,
FILTER_INPUTS(vibrance_inputs),
FILTER_OUTPUTS(vibrance_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pixel_fmts),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
.process_command = ff_filter_process_command,
};
--
2.30.2
More information about the ffmpeg-devel
mailing list