[FFmpeg-cvslog] lavfi/vf_fieldorder: switch to query_func2()
Anton Khirnov
git at videolan.org
Mon Oct 7 11:57:52 EEST 2024
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Oct 4 10:09:29 2024 +0200| [cfbb6e9f5d8a55ab3a6be28fada54f4717698974] | committer: Anton Khirnov
lavfi/vf_fieldorder: switch to query_func2()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cfbb6e9f5d8a55ab3a6be28fada54f4717698974
---
libavfilter/vf_fieldorder.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/libavfilter/vf_fieldorder.c b/libavfilter/vf_fieldorder.c
index 46b7f4bb30..5b0c723e8d 100644
--- a/libavfilter/vf_fieldorder.c
+++ b/libavfilter/vf_fieldorder.c
@@ -38,7 +38,9 @@ typedef struct FieldOrderContext {
int line_size[4]; ///< bytes of pixel data per line for each plane
} FieldOrderContext;
-static int query_formats(AVFilterContext *ctx)
+static int query_formats(const AVFilterContext *ctx,
+ AVFilterFormatsConfig **cfg_in,
+ AVFilterFormatsConfig **cfg_out)
{
const AVPixFmtDescriptor *desc = NULL;
AVFilterFormats *formats;
@@ -56,7 +58,7 @@ static int query_formats(AVFilterContext *ctx)
(ret = ff_add_format(&formats, pix_fmt)) < 0)
return ret;
}
- return ff_set_common_formats(ctx, formats);
+ return ff_set_common_formats2(ctx, cfg_in, cfg_out, formats);
}
static int config_input(AVFilterLink *inlink)
@@ -183,6 +185,6 @@ const AVFilter ff_vf_fieldorder = {
.priv_class = &fieldorder_class,
FILTER_INPUTS(avfilter_vf_fieldorder_inputs),
FILTER_OUTPUTS(ff_video_default_filterpad),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_QUERY_FUNC2(query_formats),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
};
More information about the ffmpeg-cvslog
mailing list