diff options
Diffstat (limited to 'gst/spectrum')
-rw-r--r-- | gst/spectrum/gstspectrum.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gst/spectrum/gstspectrum.c b/gst/spectrum/gstspectrum.c index f2f8aad0..268d87d6 100644 --- a/gst/spectrum/gstspectrum.c +++ b/gst/spectrum/gstspectrum.c @@ -626,11 +626,9 @@ process_f##width (GstSpectrum *spectrum, const g##type *samples) \ \ for (i = 0, j = 0; i < nfft; i++) { \ /* convert to mono */ \ - for (k = 0, acc = 0; k < channels; k++) \ + for (k = 0, acc = 0.0; k < channels; k++) \ acc += samples[j++]; \ in[i] = (g##type) (acc / channels); \ - if (abs (in[i]) > 1.0) \ - g_assert_not_reached(); \ } \ \ if (!spectrum->fft_ctx) { \ |