mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavfi/vf_il: switch to query_func2()
This commit is contained in:
parent
6929fc8845
commit
c4822228b0
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user