OSDN Git Service

Fix for overflow bug in SBC quantization code
authorSiarhei Siamashka <siarhei.siamashka@nokia.com>
Wed, 17 Dec 2008 20:32:11 +0000 (22:32 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 18 Dec 2008 22:46:05 +0000 (23:46 +0100)
commit91a3fc0c35014d43da84700204178ef594746b1f
tree01b00dafe69f1c215ce6667039b6a4ee7846c593
parent037a47214cf85251ea61c611b1aaf1d73b772ce3
Fix for overflow bug in SBC quantization code

The result of multiplication does not always fit into 32-bits. Using 64-bit
calculations helps to avoid overflows and sound quality problems in encoded
audio. Overflows are more likely to show up when using high values for
bitpool setting.
sbc/sbc.c