aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 21:44:13 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:27 +0200
commit1d70e0c85000070621a4ff04b4f3104957f31856 (patch)
tree625c8661d9df34b1a66433fb94d4f54e2a3252be /libavfilter
parent7b78f9a0e6f51c36de75c8f478b0197c69f80ff7 (diff)
downloadffmpeg-1d70e0c85000070621a4ff04b4f3104957f31856.tar.gz
avfilter/vf_idet: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_idet.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index 5048b1ae46..46c74ff641 100644
--- a/libavfilter/vf_idet.c
+++ b/libavfilter/vf_idet.c
@@ -360,8 +360,6 @@ static av_cold void uninit(AVFilterContext *ctx)
av_frame_free(&idet->next);
}
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_YUV420P,
AV_PIX_FMT_YUV422P,
@@ -395,8 +393,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_YUVA444P,
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
static av_cold int init(AVFilterContext *ctx)
{
@@ -443,6 +439,6 @@ const AVFilter ff_vf_idet = {
.uninit = uninit,
FILTER_INPUTS(idet_inputs),
FILTER_OUTPUTS(idet_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.priv_class = &idet_class,
};