From 4e4057e437972988e23b9d36092f17818871ac93 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 21 Oct 2021 21:15:48 +0200 Subject: [PATCH] avfilter/vf_bilateral: remove unused arguments --- libavfilter/vf_bilateral.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_bilateral.c b/libavfilter/vf_bilateral.c index 61c9084933..aecde64860 100644 --- a/libavfilter/vf_bilateral.c +++ b/libavfilter/vf_bilateral.c @@ -143,7 +143,6 @@ static int config_input(AVFilterLink *inlink) #define BILATERAL(type, name) \ static void bilateral_##name(BilateralContext *s, const uint8_t *ssrc, uint8_t *ddst, \ - float sigma_spatial, float sigma_range, \ int width, int height, int src_linesize, int dst_linesize) \ { \ type *dst = (type *)ddst; \ @@ -314,11 +313,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) } if (s->depth <= 8) - bilateral_byte(s, in->data[plane], out->data[plane], s->sigmaS, s->sigmaR, + bilateral_byte(s, in->data[plane], out->data[plane], s->planewidth[plane], s->planeheight[plane], in->linesize[plane], out->linesize[plane]); else - bilateral_word(s, in->data[plane], out->data[plane], s->sigmaS, s->sigmaR, + bilateral_word(s, in->data[plane], out->data[plane], s->planewidth[plane], s->planeheight[plane], in->linesize[plane] / 2, out->linesize[plane] / 2); }