mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/vf_kerndeint: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
46617366e7
commit
7b78f9a0e6
@ -66,8 +66,6 @@ static av_cold void uninit(AVFilterContext *ctx)
|
||||
av_freep(&kerndeint->tmp_data[0]);
|
||||
}
|
||||
|
||||
static int query_formats(AVFilterContext *ctx)
|
||||
{
|
||||
static const enum AVPixelFormat pix_fmts[] = {
|
||||
AV_PIX_FMT_YUV420P,
|
||||
AV_PIX_FMT_YUYV422,
|
||||
@ -78,9 +76,6 @@ static int query_formats(AVFilterContext *ctx)
|
||||
AV_PIX_FMT_NONE
|
||||
};
|
||||
|
||||
return ff_set_common_formats_from_list(ctx, pix_fmts);
|
||||
}
|
||||
|
||||
static int config_props(AVFilterLink *inlink)
|
||||
{
|
||||
KerndeintContext *kerndeint = inlink->dst->priv;
|
||||
@ -310,5 +305,5 @@ const AVFilter ff_vf_kerndeint = {
|
||||
.uninit = uninit,
|
||||
FILTER_INPUTS(kerndeint_inputs),
|
||||
FILTER_OUTPUTS(kerndeint_outputs),
|
||||
FILTER_QUERY_FUNC(query_formats),
|
||||
FILTER_PIXFMTS_ARRAY(pix_fmts),
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user