Commit a12235ae authored by Stefan Kost's avatar Stefan Kost
Browse files

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.
parent 5cf61c6a
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):
......
......@@ -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) { \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment