projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71044b3
)
level: fix decay to be smooth
author
Stefan Kost
<ensonic@users.sf.net>
Sat, 31 Oct 2009 22:29:57 +0000
(
00:29
+0200)
committer
Stefan Kost
<ensonic@users.sf.net>
Sat, 31 Oct 2009 22:31:48 +0000
(
00:31
+0200)
The length not having any fractional part as it was promoted to gdouble after
dividing two guint64.
gst/level/gstlevel.c
patch
|
blob
|
history
diff --git
a/gst/level/gstlevel.c
b/gst/level/gstlevel.c
index
b8b99dc
..
10fa10a
100644
(file)
--- 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);