From a12235aec73f62b3a696706ff2cac2d86a781790 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 13 Aug 2008 09:17:20 +0000 Subject: gst/spectrum/gstspectrum.c: Don't terminate on fabs(in)>1.0. Init doubles as doubles. Original commit message from CVS: * gst/spectrum/gstspectrum.c: Don't terminate on fabs(in)>1.0. Init doubles as doubles. --- gst/spectrum/gstspectrum.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gst/spectrum') 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) { \ -- cgit