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

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Nov 3 03:14:08 PST 2015


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

Wim Taymans <wim.taymans at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|git master                  |1.7.1

--- Comment #24 from Wim Taymans <wim.taymans at gmail.com> ---
commit 9e15c895644c0c15513fec0623416286700da184
Author: Wim Taymans <wtaymans at redhat.com>
Date:   Tue Nov 3 11:44:54 2015 +0100

    audioconvert: change multiplier for int<->float conversion

    Use (1 << 31) as the multiplier for int<->float conversions. This makes
    sure that int->float conversions always end up with floats between
    [-1.0, 1.0].
    For the conversion from float to int, this multiplier will give the
complete
    int range after we perform clipping.
    Change the unit test to take this into consideration.

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

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