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
commitc03421308337cc989ef1fad5ad630526c90b024c (patch)
tree9daa8f46a050fff3975562da99936caed5103f0e
parente0aa644978a1da06962c06e90ba91390adbf4490 (diff)
downloadffmpeg-c03421308337cc989ef1fad5ad630526c90b024c.tar.gz
lavfi/vsrc_perlin: convert to query_func2()
-rw-r--r--libavfilter/vsrc_perlin.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libavfilter/vsrc_perlin.c b/libavfilter/vsrc_perlin.c
index f736d2b97c..9f6f000da5 100644
--- a/libavfilter/vsrc_perlin.c
+++ b/libavfilter/vsrc_perlin.c
@@ -142,11 +142,13 @@ static int request_frame(AVFilterLink *outlink)
return ff_filter_frame(outlink, picref);
}
-static int query_formats(AVFilterContext *ctx)
+static int query_formats(const AVFilterContext *ctx,
+ AVFilterFormatsConfig **cfg_in,
+ AVFilterFormatsConfig **cfg_out)
{
enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE };
- return ff_set_common_formats_from_list(ctx, pix_fmts);
+ return ff_set_common_formats_from_list2(ctx, cfg_in, cfg_out, pix_fmts);
}
static const AVFilterPad perlin_outputs[] = {
@@ -166,5 +168,5 @@ const AVFilter ff_vsrc_perlin = {
.init = init,
.inputs = NULL,
FILTER_OUTPUTS(perlin_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_QUERY_FUNC2(query_formats),
};