shithub: opus

Download patch

ref: ebdfbfb743a876056ced27e7bba84f46607c9bfb
parent: fa28dea7be48ed381668cf716a4fb6d2b366e3aa
author: Jean-Marc Valin <[email protected]>
date: Wed Jan 9 06:13:00 EST 2013

Fixes stupid preprocessor-related bug introduced in e368e6209.

Would cause the preemphasis and deemphasis to fail, but only with
custom modes enabled.

--- a/celt/celt_decoder.c
+++ b/celt/celt_decoder.c
@@ -216,7 +216,7 @@
             scratch[j] = tmp;
          }
       } else
-#else
+#endif
       {
          /* Shortcut for the standard (non-custom modes) case */
          for (j=0;j<N;j++)
@@ -226,7 +226,6 @@
             scratch[j] = tmp;
          }
       }
-#endif
       mem[c] = m;
 
       /* Perform down-sampling */
--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -442,7 +442,7 @@
          m = MULT16_32_Q15(coef1, inp[i]) - MULT16_32_Q15(coef0, tmp);
       }
    } else
-#else
+#endif
    {
       for (i=0;i<N;i++)
       {
@@ -453,7 +453,6 @@
          m = - MULT16_32_Q15(coef0, x);
       }
    }
-#endif
    *mem = m;
 }