OSDN Git Service

sbc: added saturated clipping of decoder output to 16-bit
authorSiarhei Siamashka <siarhei.siamashka@nokia.com>
Fri, 17 Apr 2009 15:27:38 +0000 (18:27 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 17 Apr 2009 17:00:24 +0000 (19:00 +0200)
commit3df7c3e66042f266dadace88488e532de92d4da9
treeab4e830d20794cf0452ec4f90cd1b62a164205e0
parent4199592bad547cfed7135653f65eef3cfb1e600f
sbc: added saturated clipping of decoder output to 16-bit

This prevents overflows and audible artefacts for the audio files which
originally had loudness maximized. Music from audio CD disks is an
example of such files, see http://en.wikipedia.org/wiki/Loudness_war
sbc/sbc.c