shithub: opus

Download patch

ref: dbb96ab5cc42491167e063cadc90e420c53b08be
parent: 4c1a90a847a2af528cbfe6924a85ba8173e5c4f9
author: Jean-Marc Valin <[email protected]>
date: Sat Dec 28 19:09:06 EST 2013

Fixes C89 issue

--- a/celt/mdct.c
+++ b/celt/mdct.c
@@ -121,8 +121,11 @@
    const kiss_twiddle_scalar *trig;
    opus_val16 scale;
 #ifdef FIXED_POINT
-   /* FIXME: This should eventually just go in the state. */
    int scale_shift;
+#endif
+   SAVE_STACK;
+#ifdef FIXED_POINT
+   /* FIXME: This should eventually just go in the state. */
    scale_shift = celt_ilog2(st->nfft);
    if (st->nfft == 1<<scale_shift)
       scale = Q15ONE;
@@ -134,7 +137,6 @@
 #else
    scale = st->scale;
 #endif
-   SAVE_STACK;
 
    N = l->n;
    trig = l->trig;