From 59b1a521f4909f959e6968c14dc7e618d0df461b Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Wed, 21 Feb 2018 01:33:59 -0500 Subject: 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) --- src/opus_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.1