ffmpeg | branch: master | Paul B Mahol <one...@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++)

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to