From 1bf1f51c0a2b4e8bef93a1e949d57b33232b6455 Mon Sep 17 00:00:00 2001
From: Jean-Marc Valin <jmvalin@jmvalin.ca>
Date: Sun, 24 Nov 2013 02:01:55 -0500
Subject: [PATCH] Using a more reasonably SILK surround calibration value

Still needs more tuning
---
 src/opus_encoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/opus_encoder.c b/src/opus_encoder.c
index 47bf74b18..cbcd5c6a8 100644
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -1521,7 +1521,7 @@ opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_
            }
            /* Conservative rate reduction, we cut the masking in half */
            masking_depth = HALF16(mask_sum / end*st->channels);
-           masking_depth += QCONST16(.4f, DB_SHIFT);
+           masking_depth += QCONST16(.1f, DB_SHIFT);
            rate_offset = (opus_int32)PSHR32(MULT16_16(srate, masking_depth), DB_SHIFT);
            rate_offset = MAX32(rate_offset, -2*st->silk_mode.bitRate/3);
            st->silk_mode.bitRate += rate_offset;
-- 
GitLab