diff mbox series

[FFmpeg-devel,02/20] lavfi/vf_boxblur: switch to query_func2()

Message ID 20241004084230.27419-2-anton@khirnov.net
State New
Headers show
Series [FFmpeg-devel,01/20] lavfi/vf_alphamerge: switch to query_func2() | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Oct. 4, 2024, 8:42 a.m. UTC
---
 libavfilter/vf_boxblur.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/vf_boxblur.c b/libavfilter/vf_boxblur.c
index 27cf57a7c1..d684dee99d 100644
--- a/libavfilter/vf_boxblur.c
+++ b/libavfilter/vf_boxblur.c
@@ -55,7 +55,9 @@  static av_cold void uninit(AVFilterContext *ctx)
     av_freep(&s->temp[1]);
 }
 
-static int query_formats(AVFilterContext *ctx)
+static int query_formats(const AVFilterContext *ctx,
+                         AVFilterFormatsConfig **cfg_in,
+                         AVFilterFormatsConfig **cfg_out)
 {
     AVFilterFormats *formats = NULL;
     int fmt, ret;
@@ -69,7 +71,7 @@  static int query_formats(AVFilterContext *ctx)
             return ret;
     }
 
-    return ff_set_common_formats(ctx, formats);
+    return ff_set_common_formats2(ctx, cfg_in, cfg_out, formats);
 }
 
 static int config_input(AVFilterLink *inlink)
@@ -303,6 +305,6 @@  const AVFilter ff_vf_boxblur = {
     .uninit        = uninit,
     FILTER_INPUTS(avfilter_vf_boxblur_inputs),
     FILTER_OUTPUTS(ff_video_default_filterpad),
-    FILTER_QUERY_FUNC(query_formats),
+    FILTER_QUERY_FUNC2(query_formats),
     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
 };