aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_limiter.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 21:40:00 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:27 +0200
commitfbd540e040d7fe9af37b784864fdece748e5bec0 (patch)
tree4cccddc9ad53de470aaf53f6c7b33a5ecce39572 /libavfilter/vf_limiter.c
parent1784805086e83b5e43e649b0fe00542b72bff3ae (diff)
downloadffmpeg-fbd540e040d7fe9af37b784864fdece748e5bec0.tar.gz
avfilter/vf_limiter: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_limiter.c')
-rw-r--r--libavfilter/vf_limiter.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_limiter.c b/libavfilter/vf_limiter.c
index cd21fd0319..213e54d691 100644
--- a/libavfilter/vf_limiter.c
+++ b/libavfilter/vf_limiter.c
@@ -66,8 +66,6 @@ static av_cold int init(AVFilterContext *ctx)
return 0;
}
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV440P,
AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P,
@@ -90,9 +88,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static void limiter8(const uint8_t *src, uint8_t *dst,
ptrdiff_t slinesize, ptrdiff_t dlinesize,
int w, int h, int min, int max)
@@ -263,7 +258,7 @@ const AVFilter ff_vf_limiter = {
.init = init,
FILTER_INPUTS(inputs),
FILTER_OUTPUTS(outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
.process_command = process_command,
};