Makes bandwidth detection less aggressive.
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 12 Mar 2013 15:24:53 +0000 (11:24 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 12 Mar 2013 15:24:53 +0000 (11:24 -0400)
commitc5e04e4aa4112131424c5c8a68d07998c895324e
tree072d7900f4acf36a74ecf7d491005b07f4905a35
parentf982b84d1e0a5787526bd6ca650d27a0162c2134
Makes bandwidth detection less aggressive.

The original code was causing parts of a sine sweep to be completely dropped
due to the 300 Hz margin and the hysteresis. Also, fixes scaling for the
analysis downmix when the input is 16-bit PCM.
src/analysis.c
src/opus_encoder.c