mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
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.
This commit is contained in:
parent
5cf61c6a80
commit
a12235aec7
2 changed files with 6 additions and 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):
|
||||
|
|
|
@ -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) { \
|
||||
|
|
Loading…
Reference in a new issue