mirror of
https://github.com/xiph/opus.git
synced 2025-06-01 16:17:42 +00:00
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:
parent
fa28dea7be
commit
ebdfbfb743
2 changed files with 2 additions and 4 deletions
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue