Original commit message from CVS:
* gst/audioconvert/audioconvert.c: (float):
correctly clip float samples > 1.0. Fixes #338718
+2006-04-28 Wim Taymans <wim@fluendo.com>
+
+ * gst/audioconvert/audioconvert.c: (float):
+ correctly clip float samples > 1.0. Fixes #338718
+
2006-04-28 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Young-Ho Cha <ganadist at chollian net>
gint scale, gint count)
{
gfloat *p = (gfloat *) src;
- gfloat temp;
+ gint64 temp;
for (; count; count--) {
- temp = *p++ * 2147483647.0f + .5;
- *dst++ = (gint32) CLAMP (temp, G_MININT, G_MAXINT);
+ temp = *p++ * 2147483647.0f;
+ *dst++ = (gint32) CLAMP (temp, G_MININT32, G_MAXINT32);
}
}