diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 17:46:35 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:26 +0200 |
commit | 7c275aefe2f89c8c34b56262f332dfd50fbba27a (patch) | |
tree | 3b915b9ab63dd678dac5d9fbc7e7a56abe3fab56 | |
parent | 3f1f5187342be7252499a1f8869dcbf0c90f837b (diff) | |
download | ffmpeg-7c275aefe2f89c8c34b56262f332dfd50fbba27a.tar.gz |
avfilter/vf_repeatfields: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_repeatfields.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_repeatfields.c b/libavfilter/vf_repeatfields.c index f2aca5a059..340d908dc6 100644 --- a/libavfilter/vf_repeatfields.c +++ b/libavfilter/vf_repeatfields.c @@ -38,8 +38,6 @@ static av_cold void uninit(AVFilterContext *ctx) av_frame_free(&s->frame); } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pixel_fmts_eq[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_YUV410P, @@ -50,9 +48,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pixel_fmts_eq); -} - static int config_input(AVFilterLink *inlink) { RepeatFieldsContext *s = inlink->dst->priv; @@ -183,5 +178,5 @@ const AVFilter ff_vf_repeatfields = { .uninit = uninit, FILTER_INPUTS(repeatfields_inputs), FILTER_OUTPUTS(repeatfields_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pixel_fmts_eq), }; |