[FFmpeg-cvslog] lavfi/vf_ciescope: switch to query_func2()
Anton Khirnov
git at videolan.org
Mon Oct 7 11:57:23 EEST 2024
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Oct 4 10:09:29 2024 +0200| [631e5bcdc7df83541c5353f7d2cf2de42888e86c] | committer: Anton Khirnov
lavfi/vf_ciescope: switch to query_func2()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=631e5bcdc7df83541c5353f7d2cf2de42888e86c
---
libavfilter/vf_ciescope.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/libavfilter/vf_ciescope.c b/libavfilter/vf_ciescope.c
index 260ca26187..8ca47aaafd 100644
--- a/libavfilter/vf_ciescope.c
+++ b/libavfilter/vf_ciescope.c
@@ -139,14 +139,16 @@ static const enum AVPixelFormat out_pix_fmts[] = {
AV_PIX_FMT_NONE
};
-static int query_formats(AVFilterContext *ctx)
+static int query_formats(const AVFilterContext *ctx,
+ AVFilterFormatsConfig **cfg_in,
+ AVFilterFormatsConfig **cfg_out)
{
int ret;
- if ((ret = ff_formats_ref(ff_make_format_list(in_pix_fmts), &ctx->inputs[0]->outcfg.formats)) < 0)
+ if ((ret = ff_formats_ref(ff_make_format_list(in_pix_fmts), &cfg_in[0]->formats)) < 0)
return ret;
- if ((ret = ff_formats_ref(ff_make_format_list(out_pix_fmts), &ctx->outputs[0]->incfg.formats)) < 0)
+ if ((ret = ff_formats_ref(ff_make_format_list(out_pix_fmts), &cfg_out[0]->formats)) < 0)
return ret;
return 0;
@@ -1559,5 +1561,5 @@ const AVFilter ff_vf_ciescope = {
.uninit = uninit,
FILTER_INPUTS(inputs),
FILTER_OUTPUTS(outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_QUERY_FUNC2(query_formats),
};
More information about the ffmpeg-cvslog
mailing list