shithub: opus

Download patch

ref: dfb3e6866e1a13aa82accdf1d9961967ac900546
parent: 4d2d9fc9e6feb7060589664af5855c9ef762bc89
author: Jean-Marc Valin <[email protected]>
date: Fri Oct 15 13:45:33 EDT 2010

tweaks to the split delta for transients

--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -777,8 +777,8 @@
          int next_level=0;
 
          /* Give more bits to low-energy MDCTs than they would otherwise deserve */
-         if (B>1 && !stereo)
-            delta >>= 1;
+         if (B>1 && !stereo && itheta > 8192)
+            delta -= delta>>(1+level);
 
          mbits = (b-qalloc-delta)/2;
          if (mbits > b-qalloc)