[FFmpeg-cvslog] avfilter/avf_showwaves: remove invalid multiplication by 2
Paul B Mahol
git at videolan.org
Thu Aug 26 10:24:56 EEST 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Aug 26 09:03:19 2021 +0200| [c1c7f2b61f30a2a7c3a3a9bfa892dfc3b2bda21c] | committer: Paul B Mahol
avfilter/avf_showwaves: remove invalid multiplication by 2
Fixes output of average filter.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c1c7f2b61f30a2a7c3a3a9bfa892dfc3b2bda21c
---
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++)
More information about the ffmpeg-cvslog
mailing list