From 263e27194898248d5ef9500df57075af35f5a86d Mon Sep 17 00:00:00 2001
From: Jean-Marc Valin <jean-marc.valin@octasic.com>
Date: Tue, 1 Feb 2011 11:20:09 -0500
Subject: [PATCH] Tuning the split threshold

---
 libcelt/bands.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libcelt/bands.c b/libcelt/bands.c
index 64e53fdd5..68ba69772 100644
--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -740,9 +740,9 @@ static unsigned quant_band(int encode, const CELTMode *m, int i, celt_norm *X, c
       }
    }
 
-   /* If we need 1 more bit than we can produce, split the band in two. */
+   /* If we need 1.5 more bit than we can produce, split the band in two. */
    cache = m->cache.bits + m->cache.index[(LM+1)*m->nbEBands+i];
-   if (!stereo && LM != -1 && b > cache[cache[0]]+9 && N>2)
+   if (!stereo && LM != -1 && b > cache[cache[0]]+12 && N>2)
    {
       if (LM>0 || (N&1)==0)
       {
-- 
GitLab