aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-10-15 11:24:35 +0200
committerAnton Khirnov <anton@khirnov.net>2024-10-17 11:00:35 +0200
commit6bff95be033211c53399c1f7e4fd4d5861e75a4b (patch)
treebe6904c730bf5ea60cd253b92f12b945e5a969e2
parentab01f0522bb79ec69a0b1f488a9896158e2a86ce (diff)
downloadffmpeg-6bff95be033211c53399c1f7e4fd4d5861e75a4b.tar.gz
lavfi/vf_weave: convert to query_func2()
-rw-r--r--libavfilter/vf_weave.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libavfilter/vf_weave.c b/libavfilter/vf_weave.c
index 598779d1cf..9595865320 100644
--- a/libavfilter/vf_weave.c
+++ b/libavfilter/vf_weave.c
@@ -52,11 +52,14 @@ static const AVOption weave_options[] = {
AVFILTER_DEFINE_CLASS_EXT(weave, "(double)weave", weave_options);
-static int query_formats(AVFilterContext *ctx)
+static int query_formats(const AVFilterContext *ctx,
+ AVFilterFormatsConfig **cfg_in,
+ AVFilterFormatsConfig **cfg_out)
{
int reject_flags = AV_PIX_FMT_FLAG_PAL | AV_PIX_FMT_FLAG_HWACCEL;
- return ff_set_common_formats(ctx, ff_formats_pixdesc_filter(0, reject_flags));
+ return ff_set_common_formats2(ctx, cfg_in, cfg_out,
+ ff_formats_pixdesc_filter(0, reject_flags));
}
static int config_props_output(AVFilterLink *outlink)
@@ -209,7 +212,7 @@ const AVFilter ff_vf_weave = {
.uninit = uninit,
FILTER_INPUTS(weave_inputs),
FILTER_OUTPUTS(weave_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_QUERY_FUNC2(query_formats),
.flags = AVFILTER_FLAG_SLICE_THREADS,
};
@@ -232,6 +235,6 @@ const AVFilter ff_vf_doubleweave = {
.uninit = uninit,
FILTER_INPUTS(weave_inputs),
FILTER_OUTPUTS(weave_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_QUERY_FUNC2(query_formats),
.flags = AVFILTER_FLAG_SLICE_THREADS,
};