mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-17 21:14:47 +00:00
lavfi/vf_fieldhint: switch to query_func2()
This commit is contained in:
parent
637b242ec3
commit
4863570d49
@ -85,13 +85,16 @@ static av_cold int init(AVFilterContext *ctx)
|
|||||||
return 0;
|
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 |
|
int reject_flags = AV_PIX_FMT_FLAG_BITSTREAM |
|
||||||
AV_PIX_FMT_FLAG_HWACCEL |
|
AV_PIX_FMT_FLAG_HWACCEL |
|
||||||
AV_PIX_FMT_FLAG_PAL;
|
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)
|
static int config_input(AVFilterLink *inlink)
|
||||||
@ -329,5 +332,5 @@ const AVFilter ff_vf_fieldhint = {
|
|||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
FILTER_INPUTS(inputs),
|
FILTER_INPUTS(inputs),
|
||||||
FILTER_OUTPUTS(outputs),
|
FILTER_OUTPUTS(outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_QUERY_FUNC2(query_formats),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user