[Bug 755301] audioconvert: Integer->Float conversion creates values slightly smaller than -1.0
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Sep 21 01:48:06 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=755301
Stefan Sauer (gstreamer, gtkdoc dev) <ensonic at sonicpulse.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ensonic at sonicpulse.de
--- Comment #6 from Stefan Sauer (gstreamer, gtkdoc dev) <ensonic at sonicpulse.de> ---
The simple fix would be to divide by the bigger divisor 2147483648, so that we
never get out-of-range.
If we want to handle the assymetry, we can also do
out = (in > 0) ? in / 2147483647.0 : in / 2147483648.0
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list