diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 21:31:36 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:26 +0200 |
commit | 15195d698b98452807530aa51ea0fc0d9db06dcd (patch) | |
tree | e94e18378f801f090d981df0c40f1623d58a558f | |
parent | fd1378feb14b0779a099946eac2a889657325255 (diff) | |
download | ffmpeg-15195d698b98452807530aa51ea0fc0d9db06dcd.tar.gz |
avfilter/vf_mestimate: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_mestimate.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_mestimate.c b/libavfilter/vf_mestimate.c index 2856d121c3..fac313e055 100644 --- a/libavfilter/vf_mestimate.c +++ b/libavfilter/vf_mestimate.c @@ -67,8 +67,6 @@ static const AVOption mestimate_options[] = { AVFILTER_DEFINE_CLASS(mestimate); -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, @@ -81,9 +79,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static int config_input(AVFilterLink *inlink) { MEContext *s = inlink->dst->priv; @@ -370,5 +365,5 @@ const AVFilter ff_vf_mestimate = { .uninit = uninit, FILTER_INPUTS(mestimate_inputs), FILTER_OUTPUTS(mestimate_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), }; |