aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 23:10:36 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:28 +0200
commit8256d60b2820ccb61fa9d3a0181cf027437da37c (patch)
tree731138655f4b143dae032eeb30eb2ec41d2b4b53
parenta750328f37f02d3d7ec54cc04e67234439bc53c0 (diff)
downloadffmpeg-8256d60b2820ccb61fa9d3a0181cf027437da37c.tar.gz
avfilter/vf_dedot: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavfilter/vf_dedot.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_dedot.c b/libavfilter/vf_dedot.c
index 9d31af3f6d..3e2e7ba6b2 100644
--- a/libavfilter/vf_dedot.c
+++ b/libavfilter/vf_dedot.c
@@ -56,8 +56,6 @@ typedef struct DedotContext {
int (*derainbow)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
} DedotContext;
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pixel_fmts[] = {
AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV440P,
AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P,
@@ -75,8 +73,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_YUVA420P16, AV_PIX_FMT_YUVA422P16, AV_PIX_FMT_YUVA444P16,
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pixel_fmts);
-}
#define DEFINE_DEDOTCRAWL(name, type, div) \
static int dedotcrawl##name(AVFilterContext *ctx, void *arg, \
@@ -405,6 +401,6 @@ const AVFilter ff_vf_dedot = {
.uninit = uninit,
FILTER_INPUTS(inputs),
FILTER_OUTPUTS(outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pixel_fmts),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS,
};