diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 17:24:30 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:25 +0200 |
commit | fed5f24871785a98b5f68eb9fb1d0a3c4b644880 (patch) | |
tree | 2ab7bfdba14a806dfa6bcd6b110a59d8420e9571 | |
parent | fc5239aacfa7963f4ed87c69c39a7794716d1bb1 (diff) | |
download | ffmpeg-fed5f24871785a98b5f68eb9fb1d0a3c4b644880.tar.gz |
avfilter/vf_vidstabdetect: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_vidstabdetect.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_vidstabdetect.c b/libavfilter/vf_vidstabdetect.c index 19e9ca5a42..05c95d0eeb 100644 --- a/libavfilter/vf_vidstabdetect.c +++ b/libavfilter/vf_vidstabdetect.c @@ -82,11 +82,6 @@ static av_cold void uninit(AVFilterContext *ctx) vsMotionDetectionCleanup(md); } -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; @@ -203,6 +198,6 @@ const AVFilter ff_vf_vidstabdetect = { .uninit = uninit, FILTER_INPUTS(avfilter_vf_vidstabdetect_inputs), FILTER_OUTPUTS(avfilter_vf_vidstabdetect_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(ff_vidstab_pix_fmts), .priv_class = &vidstabdetect_class, }; |