1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avfilter/vf_vidstabtransform: Use formats list instead of query func

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-27 17:23:27 +02:00
parent 688696790c
commit fc5239aacf

View File

@ -121,12 +121,6 @@ static av_cold void uninit(AVFilterContext *ctx)
vsTransformationsCleanup(&tc->trans);
}
static int query_formats(AVFilterContext *ctx)
{
return ff_set_common_formats_from_list(ctx, ff_vidstab_pix_fmts);
}
static int config_input(AVFilterLink *inlink)
{
AVFilterContext *ctx = inlink->dst;
@ -304,6 +298,6 @@ const AVFilter ff_vf_vidstabtransform = {
.uninit = uninit,
FILTER_INPUTS(avfilter_vf_vidstabtransform_inputs),
FILTER_OUTPUTS(avfilter_vf_vidstabtransform_outputs),
FILTER_QUERY_FUNC(query_formats),
FILTER_PIXFMTS_ARRAY(ff_vidstab_pix_fmts),
.priv_class = &vidstabtransform_class,
};