Fixes fixed-point overflow on really low energy
authorJean-Marc Valin <jean-marc.valin@octasic.com>
Thu, 27 Jan 2011 15:46:01 +0000 (10:46 -0500)
committerJean-Marc Valin <jean-marc.valin@octasic.com>
Thu, 27 Jan 2011 15:46:01 +0000 (10:46 -0500)
commit79afa9c605fa740d0180d34c5ed526deabccfa15
treeda5f8a53a17bad16a504b7f9f30c360d8a96a126
parent02ad779f5f0f09b1e194a8d9cb7c7ce844873663
Fixes fixed-point overflow on really low energy

Makes celt_exp2() use Q10 input to avoid problems on very low energy.
Also makes the pitch downsampling more conservative on gain to avoid
problems later.
libcelt/bands.c
libcelt/mathops.h
libcelt/pitch.c
libcelt/quant_bands.c