shithub: opus

Download patch

ref: b441a157d802e94a63a0ebbf2277f3d70c908187
parent: 6bf04627b09f63ce903fdaaee11754712b6e6c88
author: Jean-Marc Valin <[email protected]>
date: Mon Oct 4 10:45:59 EDT 2010

Using high-band noise less aggressively

--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -348,7 +348,7 @@
    /* Hysteresis */
    sum = (3*sum + ((*last_decision<<7) + 64) + 2)>>2;
    /* decision and last_decision do not use the same encoding */
-   if (sum < 128)
+   if (sum < 80)
    {
       decision = 2;
       *last_decision = 0;
@@ -953,7 +953,7 @@
             Y = norm;
       }
 
-      if (tf_change==0 && !shortBlocks && fold)
+      if (tf_change==0 && !shortBlocks && fold==2)
          effective_lowband = NULL;
       else
          effective_lowband = lowband;