From 03d2f4bdec9ad0b558d973c45ee685cbf33c598a Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Sun, 1 Nov 2009 00:29:57 +0200 Subject: level: fix decay to be smooth The length not having any fractional part as it was promoted to gdouble after dividing two guint64. --- gst/level/gstlevel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/level/gstlevel.c b/gst/level/gstlevel.c index b8b99dcba..10fa10a4e 100644 --- a/gst/level/gstlevel.c +++ b/gst/level/gstlevel.c @@ -621,7 +621,7 @@ gst_level_transform_ip (GstBaseTransform * trans, GstBuffer * in) gdouble falloff; gdouble length; /* length of falloff time in seconds */ - length = (gdouble) (falloff_time / GST_SECOND); + length = (gdouble) falloff_time / (gdouble) GST_SECOND; falloff_dB = filter->decay_peak_falloff * length; falloff = pow (10, falloff_dB / -20.0); -- cgit v1.2.3