1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-06-09 14:07:31 +02:00

avfilter/avf_showwaves: remove invalid multiplication by 2

Fixes output of average filter.
This commit is contained in:
Paul B Mahol 2021-08-26 09:03:19 +02:00
parent ad88cce3f8
commit c1c7f2b61f

View File

@ -600,7 +600,7 @@ static int push_single_pic(AVFilterLink *outlink)
switch (showwaves->filter_mode) { switch (showwaves->filter_mode) {
case FILTER_AVERAGE: case FILTER_AVERAGE:
for (ch = 0; ch < nb_channels; ch++) 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; break;
case FILTER_PEAK: case FILTER_PEAK:
for (ch = 0; ch < nb_channels; ch++) for (ch = 0; ch < nb_channels; ch++)