diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 17:23:27 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:25 +0200 |
commit | fc5239aacfa7963f4ed87c69c39a7794716d1bb1 (patch) | |
tree | e12fb887d23f4d1b4482cdb7370cca985b57bcbf /libavfilter/vf_vidstabtransform.c | |
parent | 688696790cc69b81d92f9c1a3e753399cdfb1508 (diff) | |
download | ffmpeg-fc5239aacfa7963f4ed87c69c39a7794716d1bb1.tar.gz |
avfilter/vf_vidstabtransform: Use formats list instead of query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_vidstabtransform.c')
-rw-r--r-- | libavfilter/vf_vidstabtransform.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libavfilter/vf_vidstabtransform.c b/libavfilter/vf_vidstabtransform.c index 338a5d4f8a..4619e9b256 100644 --- a/libavfilter/vf_vidstabtransform.c +++ b/libavfilter/vf_vidstabtransform.c @@ -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, }; |