Fixes stupid preprocessor-related bug introduced in e368e6209.

Would cause the preemphasis and deemphasis to fail, but only with
custom modes enabled.
This commit is contained in:
Jean-Marc Valin 2013-01-09 11:13:00 -05:00
parent fa28dea7be
commit ebdfbfb743
2 changed files with 2 additions and 4 deletions

View file

@ -216,7 +216,7 @@ void deemphasis(celt_sig *in[], opus_val16 *pcm, int N, int C, int downsample, c
scratch[j] = tmp;
}
} else
#else
#endif
{
/* Shortcut for the standard (non-custom modes) case */
for (j=0;j<N;j++)
@ -226,7 +226,6 @@ void deemphasis(celt_sig *in[], opus_val16 *pcm, int N, int C, int downsample, c
scratch[j] = tmp;
}
}
#endif
mem[c] = m;
/* Perform down-sampling */

View file

@ -442,7 +442,7 @@ static void preemphasis(const opus_val16 * OPUS_RESTRICT pcmp, celt_sig * OPUS_R
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 @@ static void preemphasis(const opus_val16 * OPUS_RESTRICT pcmp, celt_sig * OPUS_R
m = - MULT16_32_Q15(coef0, x);
}
}
#endif
*mem = m;
}