shithub: opus

Download patch

ref: c591e1542a06e8edf4de2f9cd331e182847818f4
parent: cbaf67e83608a2d3419a925b9627ee460741f300
author: Jean-Marc Valin <[email protected]>
date: Mon Sep 29 13:41:14 EDT 2008

Proper stack restore

--- a/libcelt/rate.c
+++ b/libcelt/rate.c
@@ -140,8 +140,8 @@
       for (j=0;j<left;j++)
          bits[j]++;
    }
-   return (total-C*esum)<<BITRES;
    RESTORE_STACK;
+   return (total-C*esum)<<BITRES;
 }
 
 void compute_allocation(const CELTMode *m, int *offsets, const int *stereo_mode, int total, int *pulses, int *ebits)