[FFmpeg-cvslog] lavfi/vf_pad: switch to query_func2()
Anton Khirnov
git at videolan.org
Tue Oct 15 11:44:54 EEST 2024
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Oct 12 18:28:12 2024 +0200| [c8344737b61e8117556d519c829909d59dec0716] | committer: Anton Khirnov
lavfi/vf_pad: switch to query_func2()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c8344737b61e8117556d519c829909d59dec0716
---
libavfilter/vf_pad.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c
index e0cf84002b..dc9ffaa46d 100644
--- a/libavfilter/vf_pad.c
+++ b/libavfilter/vf_pad.c
@@ -72,9 +72,12 @@ enum var_name {
VARS_NB
};
-static int query_formats(AVFilterContext *ctx)
+static int query_formats(const AVFilterContext *ctx,
+ AVFilterFormatsConfig **cfg_in,
+ AVFilterFormatsConfig **cfg_out)
{
- return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
+ return ff_set_common_formats2(ctx, cfg_in, cfg_out,
+ ff_draw_supported_pixel_formats(0));
}
enum EvalMode {
@@ -458,5 +461,5 @@ const AVFilter ff_vf_pad = {
.priv_class = &pad_class,
FILTER_INPUTS(avfilter_vf_pad_inputs),
FILTER_OUTPUTS(avfilter_vf_pad_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_QUERY_FUNC2(query_formats),
};
More information about the ffmpeg-cvslog
mailing list