volume: Fix handling of volume>=4.0 for 8 and 16 bit integer formats
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 31 May 2011 09:05:03 +0000 (11:05 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 31 May 2011 09:07:11 +0000 (11:07 +0200)
commit8f967e9e7029b5b77c3a434af8a1cce878a2954d
tree503666203eefb7265e6de3d799959543132adcee
parent4f6da2bcbc99e12940911f68d906861890e2304b
volume: Fix handling of volume>=4.0 for 8 and 16 bit integer formats

Also add a unit test for this. Previously volumes bigger than 4.0
would have resulted in overflows in the fixed point processing.

Fixes bug #649642.
gst/volume/gstvolume.c
gst/volume/gstvolumeorc.orc
tests/check/elements/volume.c