summaryrefslogtreecommitdiff
path: root/libavfilter/vf_mpdecimate.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 21:28:12 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:26 +0200
commitc6419b0c9cac9c5b4e3abe2b3ce8aa162d6e54d8 (patch)
treec9d6a25279d7e3ec88977c384181c0ba4d3199c1 /libavfilter/vf_mpdecimate.c
parent86edbd3707555e76b9190591235ee4cff5b8bd31 (diff)
downloadffmpeg-c6419b0c9cac9c5b4e3abe2b3ce8aa162d6e54d8.tar.gz
avfilter/vf_mpdecimate: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_mpdecimate.c')
-rw-r--r--libavfilter/vf_mpdecimate.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_mpdecimate.c b/libavfilter/vf_mpdecimate.c
index c48cff8a4b..edc1e54564 100644
--- a/libavfilter/vf_mpdecimate.c
+++ b/libavfilter/vf_mpdecimate.c
@@ -161,8 +161,6 @@ static av_cold void uninit(AVFilterContext *ctx)
av_frame_free(&decimate->ref);
}
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P,
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P,
@@ -178,8 +176,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)
{
@@ -246,5 +242,5 @@ const AVFilter ff_vf_mpdecimate = {
.priv_class = &mpdecimate_class,
FILTER_INPUTS(mpdecimate_inputs),
FILTER_OUTPUTS(mpdecimate_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
};