summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
};