summaryrefslogtreecommitdiffstats
path: root/gst/spectrum
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2008-08-13 09:17:20 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2008-08-13 09:17:20 +0000
commita12235aec73f62b3a696706ff2cac2d86a781790 (patch)
treea3212a19ca3270f5410363ca1c200e0b0928d1af /gst/spectrum
parent5cf61c6a80f3da587e08371f1f1000f17e482298 (diff)
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.
Diffstat (limited to 'gst/spectrum')
-rw-r--r--gst/spectrum/gstspectrum.c4
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) { \