summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2018-02-21 01:33:59 -0500
committerJean-Marc Valin <jmvalin@jmvalin.ca>2018-02-21 01:39:40 -0500
commit59b1a521f4909f959e6968c14dc7e618d0df461b (patch)
tree2d8d61f0bc3d7a61988160d26ff6ae88fb813de1 /src
parent475fa4a98c7f4be57e507f55a37ef3fce79692a6 (diff)
downloadopus-59b1a521f4909f959e6968c14dc7e618d0df461b.tar.gz
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)
Diffstat (limited to 'src')
-rw-r--r--src/opus_encoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opus_encoder.c b/src/opus_encoder.c
index b89b874b..694ff7e3 100644
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -816,7 +816,7 @@ static int compute_silk_rate_for_hybrid(int rate, int bandwidth, int frame20ms,
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;
}