From c1c7f2b61f30a2a7c3a3a9bfa892dfc3b2bda21c Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 26 Aug 2021 09:03:19 +0200 Subject: [PATCH] avfilter/avf_showwaves: remove invalid multiplication by 2 Fixes output of average filter. --- libavfilter/avf_showwaves.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/avf_showwaves.c b/libavfilter/avf_showwaves.c index 3dd381b9fd..e75ed88729 100644 --- a/libavfilter/avf_showwaves.c +++ b/libavfilter/avf_showwaves.c @@ -600,7 +600,7 @@ static int push_single_pic(AVFilterLink *outlink) switch (showwaves->filter_mode) { case FILTER_AVERAGE: for (ch = 0; ch < nb_channels; ch++) - sum[ch] += abs(p[ch + i*nb_channels]) << 1; + sum[ch] += abs(p[ch + i*nb_channels]); break; case FILTER_PEAK: for (ch = 0; ch < nb_channels; ch++)