shithub: opus

Download patch

ref: 6bf15c55d893149fef044e6a6e6b3cae6f53b3e1
parent: 0110301daf363ee7dd49feac56fcbe805332e8e2
author: Jean-Marc Valin <[email protected]>
date: Thu Oct 21 11:08:27 EDT 2010

Tuning the folding bands.

The idea here is that it's better to fold a higher band -- even if it was
coded less accurately -- than a lower band that may have a different
temporal structure.

--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -978,8 +978,8 @@
 
       balance += pulses[i] + tell;
 
-      /* Update the folding position only as long as we have 2 bit/sample depth */
-      update_lowband = (b>>BITRES)>2*N;
+      /* Update the folding position only as long as we have 1 bit/sample depth */
+      update_lowband = (b>>BITRES)>N;
    }
    RESTORE_STACK;
 }