[FFmpeg-cvslog] lavfi/vf_crop: switch to query_func2()
Anton Khirnov
git at videolan.org
Mon Oct 7 11:57:29 EEST 2024
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Oct 4 10:09:29 2024 +0200| [a92052cb97d2a8f7104d586bb2f475f9484a5a50] | committer: Anton Khirnov
lavfi/vf_crop: switch to query_func2()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a92052cb97d2a8f7104d586bb2f475f9484a5a50
---
libavfilter/vf_crop.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index 4742732b63..f3cbc83b8b 100644
--- a/libavfilter/vf_crop.c
+++ b/libavfilter/vf_crop.c
@@ -95,11 +95,14 @@ typedef struct CropContext {
double var_values[VAR_VARS_NB];
} CropContext;
-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_BITSTREAM | FF_PIX_FMT_FLAG_SW_FLAT_SUB;
- 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 av_cold void uninit(AVFilterContext *ctx)
@@ -405,6 +408,6 @@ const AVFilter ff_vf_crop = {
.uninit = uninit,
FILTER_INPUTS(avfilter_vf_crop_inputs),
FILTER_OUTPUTS(avfilter_vf_crop_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_QUERY_FUNC2(query_formats),
.process_command = process_command,
};
More information about the ffmpeg-cvslog
mailing list