diff --git a/libavfilter/vf_il.c b/libavfilter/vf_il.c index 9a3a9d47a9..5e5d4c16e8 100644 --- a/libavfilter/vf_il.c +++ b/libavfilter/vf_il.c @@ -83,11 +83,14 @@ static const AVOption il_options[] = { AVFILTER_DEFINE_CLASS(il); -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_PAL | AV_PIX_FMT_FLAG_HWACCEL; - 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) @@ -191,7 +194,7 @@ const AVFilter ff_vf_il = { .priv_size = sizeof(IlContext), FILTER_INPUTS(inputs), FILTER_OUTPUTS(ff_video_default_filterpad), - FILTER_QUERY_FUNC(query_formats), + FILTER_QUERY_FUNC2(query_formats), .priv_class = &il_class, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, .process_command = ff_filter_process_command,