shithub: opus

Download patch

ref: f57908334a7b258b7e52ebdd23c910f0e4a19069
parent: 9b24723915525afcba589ce77a320ba8d24edeb0
author: evpobr <[email protected]>
date: Sun Jan 20 03:13:36 EST 2019

Fix FIXED_POINT conditional check

Signed-off-by: Jean-Marc Valin <[email protected]>

--- a/celt/bands.c
+++ b/celt/bands.c
@@ -371,7 +371,7 @@
 static void compute_channel_weights(celt_ener Ex, celt_ener Ey, opus_val16 w[2])
 {
    celt_ener minE;
-#if FIXED_POINT
+#ifdef FIXED_POINT
    int shift;
 #endif
    minE = MIN32(Ex, Ey);
@@ -378,7 +378,7 @@
    /* Adjustment to make the weights a bit more conservative. */
    Ex = ADD32(Ex, minE/3);
    Ey = ADD32(Ey, minE/3);
-#if FIXED_POINT
+#ifdef FIXED_POINT
    shift = celt_ilog2(EPSILON+MAX32(Ex, Ey))-14;
 #endif
    w[0] = VSHR32(Ex, shift);