ref: 59b1a521f4909f959e6968c14dc7e618d0df461b
parent: 475fa4a98c7f4be57e507f55a37ef3fce79692a6
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Tue Feb 20 20:33:59 EST 2018
Increasing the CELT bit allocation slightly for stereo hybrid Fixes a "regression" from 1.2 to 1.3-beta that was especially noticeable on a Korean speech sample. (it wasn't a real regression since 1.2 only worked because it was using CELT)
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -816,7 +816,7 @@
silk_rate *= channels;
/* The CELT layer saves a bit more than SILK for stereo, so we boost SILK. */
if (channels == 2 && rate >= 12000)
- silk_rate += 1000;
+ silk_rate -= 1000;
return silk_rate;
}