diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-10-15 11:24:35 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-10-17 11:00:35 +0200 |
commit | 73c863fad888a8f8d2069e96cb0bc28f8b2dc6fb (patch) | |
tree | c3aa37b19e2f701f252debe429a753febf12fd43 /libavfilter/vf_v360.c | |
parent | 223327d51a3602963585981470644156431ea9a1 (diff) | |
download | ffmpeg-73c863fad888a8f8d2069e96cb0bc28f8b2dc6fb.tar.gz |
lavfi/vf_v360: convert to query_func2()
Diffstat (limited to 'libavfilter/vf_v360.c')
-rw-r--r-- | libavfilter/vf_v360.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c index 12e40205ba..04dc03bee7 100644 --- a/libavfilter/vf_v360.c +++ b/libavfilter/vf_v360.c @@ -172,9 +172,11 @@ static const AVOption v360_options[] = { AVFILTER_DEFINE_CLASS(v360); -static int query_formats(AVFilterContext *ctx) +static int query_formats(const AVFilterContext *ctx, + AVFilterFormatsConfig **cfg_in, + AVFilterFormatsConfig **cfg_out) { - V360Context *s = ctx->priv; + const V360Context *s = ctx->priv; static const enum AVPixelFormat pix_fmts[] = { // YUVA444 AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUVA444P9, @@ -250,7 +252,8 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, s->alpha ? alpha_pix_fmts : pix_fmts); + return ff_set_common_formats_from_list2(ctx, cfg_in, cfg_out, + s->alpha ? alpha_pix_fmts : pix_fmts); } #define DEFINE_REMAP1_LINE(bits, div) \ @@ -5000,7 +5003,7 @@ const AVFilter ff_vf_v360 = { .uninit = uninit, FILTER_INPUTS(inputs), FILTER_OUTPUTS(outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_QUERY_FUNC2(query_formats), .priv_class = &v360_class, .flags = AVFILTER_FLAG_SLICE_THREADS, .process_command = process_command, |