summaryrefslogtreecommitdiff
path: root/libavfilter/vf_bilateral.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 23:36:09 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:29 +0200
commit32777acb362c6d4e6cbdbd4d732af164c6254c0b (patch)
treeecca500ef83349c212e1f0e5c2e3fc2c9084838d /libavfilter/vf_bilateral.c
parentdc465efdf88732fdf173b7dc16a75456c2188fa8 (diff)
downloadffmpeg-32777acb362c6d4e6cbdbd4d732af164c6254c0b.tar.gz
avfilter/vf_bilateral: Use formats list instead of query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_bilateral.c')
-rw-r--r--libavfilter/vf_bilateral.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_bilateral.c b/libavfilter/vf_bilateral.c
index b292629c62..e613a20678 100644
--- a/libavfilter/vf_bilateral.c
+++ b/libavfilter/vf_bilateral.c
@@ -66,8 +66,6 @@ static const AVOption bilateral_options[] = {
AVFILTER_DEFINE_CLASS(bilateral);
-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,
@@ -89,9 +87,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static int config_params(AVFilterContext *ctx)
{
BilateralContext *s = ctx->priv;
@@ -385,7 +380,7 @@ const AVFilter ff_vf_bilateral = {
.uninit = uninit,
FILTER_INPUTS(bilateral_inputs),
FILTER_OUTPUTS(bilateral_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
.process_command = process_command,
};