Original commit message from CVS:
* gst/audioconvert/audioconvert.c: (float):
More correct float->int conversion.
2006-06-02 Michael Smith <msmith@fluendo.com>
+ * gst/audioconvert/audioconvert.c: (float):
+ More correct float->int conversion.
+
+2006-06-02 Michael Smith <msmith@fluendo.com>
+
* ext/ogg/gstoggdemux.c: (gst_ogg_demux_perform_seek):
Don't accidently send GST_CLOCK_TIME_NONE as a new segment start
value. Fixes g-critical on trying to play back ogg containing
gint scale, gint count)
{
gfloat *p = (gfloat *) src;
- gint64 temp;
+ gdouble temp;
for (; count; count--) {
- temp = *p++ * 2147483647.0f;
+ temp = (*p++ * 2147483647.0) + 0.5;
*dst++ = (gint32) CLAMP (temp, G_MININT32, G_MAXINT32);
}
}