From fd9c0f1e1f1b74c46c5872217e3289a9edf69d48 Mon Sep 17 00:00:00 2001
From: Jean-Marc Valin <jmvalin@amazon.com>
Date: Sun, 24 Jul 2022 02:14:53 -0400
Subject: [PATCH] More FEC tuning: lowering the LBRR bitrate a bit

---
 silk/control_codec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/silk/control_codec.c b/silk/control_codec.c
index 52aa8fded..784ffe66d 100644
--- a/silk/control_codec.c
+++ b/silk/control_codec.c
@@ -415,7 +415,7 @@ static OPUS_INLINE opus_int silk_setup_LBRR(
             /* Previous packet did not have LBRR, and was therefore coded at a higher bitrate */
             psEncC->LBRR_GainIncreases = 7;
         } else {
-            psEncC->LBRR_GainIncreases = silk_max_int( 7 - silk_SMULWB( (opus_int32)psEncC->PacketLoss_perc, SILK_FIX_CONST( 0.4, 16 ) ), 2 );
+            psEncC->LBRR_GainIncreases = silk_max_int( 7 - silk_SMULWB( (opus_int32)psEncC->PacketLoss_perc, SILK_FIX_CONST( 0.2, 16 ) ), 3 );
         }
     }
 
-- 
GitLab