diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2008-08-13 09:17:20 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2008-08-13 09:17:20 +0000 |
commit | a12235aec73f62b3a696706ff2cac2d86a781790 (patch) | |
tree | a3212a19ca3270f5410363ca1c200e0b0928d1af | |
parent | 5cf61c6a80f3da587e08371f1f1000f17e482298 (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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gst/spectrum/gstspectrum.c | 4 |
2 files changed, 6 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2008-08-13 Stefan Kost <ensonic@users.sf.net> + + * gst/spectrum/gstspectrum.c: + Don't terminate on fabs(in)>1.0. Init doubles as doubles. + 2008-08-13 Edward Hervey <edward.hervey@collabora.co.uk> * sys/v4l2/gstv4l2src.c: (gst_v4l2src_query): 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) { \ |