avfilter/avf_showwaves: remove invalid multiplication by 2

Fixes output of average filter.
pull/365/head
Paul B Mahol 3 years ago
parent ad88cce3f8
commit c1c7f2b61f
  1. 2
      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++)

Loading…
Cancel
Save