diff mbox series

[FFmpeg-devel,071/218] avfilter/vf_lensfun: Store format in filter, remove query function

Message ID PR3PR03MB6665D274A6D9E94C51C6B5BB8FAA9@PR3PR03MB6665.eurprd03.prod.outlook.com
State Accepted
Commit 9e48552ec604c09a03326155710711da3ca351ef
Headers show
Series [FFmpeg-devel,001/218] avfilter/f_reverse: Don't use redundant query_formats function | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 30, 2021, 1:40 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/vf_lensfun.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/vf_lensfun.c b/libavfilter/vf_lensfun.c
index c9a62ccee7..596daed104 100644
--- a/libavfilter/vf_lensfun.c
+++ b/libavfilter/vf_lensfun.c
@@ -193,13 +193,6 @@  static av_cold int init(AVFilterContext *ctx)
     return 0;
 }
 
-static int query_formats(AVFilterContext *ctx)
-{
-    // Some of the functions provided by lensfun require pixels in RGB format
-    static const enum AVPixelFormat fmts[] = {AV_PIX_FMT_RGB24, AV_PIX_FMT_NONE};
-    return ff_set_common_formats_from_list(ctx, fmts);
-}
-
 static float lanczos_kernel(float x)
 {
     if (x == 0.0f) {
@@ -536,7 +529,7 @@  const AVFilter ff_vf_lensfun = {
     .uninit        = uninit,
     FILTER_INPUTS(lensfun_inputs),
     FILTER_OUTPUTS(lensfun_outputs),
-    FILTER_QUERY_FUNC(query_formats),
+    FILTER_SINGLE_PIXFMT(AV_PIX_FMT_RGB24),
     .priv_class    = &lensfun_class,
     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
 };