diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-08-26 09:03:19 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-08-26 09:16:35 +0200 |
commit | c1c7f2b61f30a2a7c3a3a9bfa892dfc3b2bda21c (patch) | |
tree | 16094f5c1da05b4e5fa267b1f95d5dbd05ca6013 | |
parent | ad88cce3f8d0c8808522d2c93eaeaba904e764a5 (diff) | |
download | ffmpeg-c1c7f2b61f30a2a7c3a3a9bfa892dfc3b2bda21c.tar.gz |
avfilter/avf_showwaves: remove invalid multiplication by 2
Fixes output of average filter.
-rw-r--r-- | libavfilter/avf_showwaves.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) |