[FFmpeg-devel] [PATCH 09/21] lavfi/vf_telecine: convert to query_func2()
Anton Khirnov
anton at khirnov.net
Tue Oct 15 12:47:32 EEST 2024
---
libavfilter/vf_telecine.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/libavfilter/vf_telecine.c b/libavfilter/vf_telecine.c
index 77f62f3e8c..107d379c66 100644
--- a/libavfilter/vf_telecine.c
+++ b/libavfilter/vf_telecine.c
@@ -99,13 +99,16 @@ static av_cold int init(AVFilterContext *ctx)
return 0;
}
-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 |
AV_PIX_FMT_FLAG_HWACCEL |
AV_PIX_FMT_FLAG_PAL;
- 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 int config_input(AVFilterLink *inlink)
@@ -326,5 +329,5 @@ const AVFilter ff_vf_telecine = {
.uninit = uninit,
FILTER_INPUTS(telecine_inputs),
FILTER_OUTPUTS(telecine_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_QUERY_FUNC2(query_formats),
};
--
2.43.0
More information about the ffmpeg-devel
mailing list