[Bug 755301] audioconvert: Integer->Float conversion creates values slightly smaller than -1.0

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Sep 22 04:39:18 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=755301

--- Comment #13 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Sebastian Dröge (slomo) from comment #12)
> Created attachment 311849 [details] [review]
> audioconvert: Divide by 2147483648 when converting to floats to stay in
> [-1.0, 1.0] range
> 
> Breaks unit tests, don't merge yet.

Now the problem here is that 2147483648.0 and 2147483647.0 are the same value
for 32 bit floats. Printing that value even gives us 2147483648.0, and we were
using that one before.

For doubles the above patch should make a difference (and it does, the unit
test becomes unhappy).

-- 
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