diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2004-11-28 19:22:07 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2004-11-28 19:22:07 +0000 |
commit | 836ea71ea1659699524649fab91aed7579cac672 (patch) | |
tree | 070c90d220167470253ba16fbec21d37bf5324b7 | |
parent | d70c927c8bbe2b3807b5d3c5e0e43bb6a0bf3ac7 (diff) | |
download | gstreamer-plugins-base-836ea71ea1659699524649fab91aed7579cac672.tar.gz |
gst/audioconvert/gstchannelmix.c: Normalize using absolute values.
Original commit message from CVS:
* gst/audioconvert/gstchannelmix.c:
(gst_audio_convert_fill_normalize):
Normalize using absolute values.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gst/audioconvert/gstchannelmix.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2004-11-28 Ronald S. Bultje <rbultje@ronald.bitfreak.net> + + * gst/audioconvert/gstchannelmix.c: + (gst_audio_convert_fill_normalize): + Normalize using absolute values. + 2004-11-28 Julien MOUTTE <julien@moutte.net> * configure.ac: diff --git a/gst/audioconvert/gstchannelmix.c b/gst/audioconvert/gstchannelmix.c index 705cfad58..f78acf2d7 100644 --- a/gst/audioconvert/gstchannelmix.c +++ b/gst/audioconvert/gstchannelmix.c @@ -438,7 +438,7 @@ gst_audio_convert_fill_normalize (GstAudioConvert * this) /* calculate sum */ sum = 0.0; for (i = 0; i < this->sinkcaps.channels; i++) { - sum += this->matrix[i][j]; + sum += fabs (this->matrix[i][j]); } if (sum > top) { top = sum; |