AUDIO: Fix undefined shift in WMACodec::calculateMDCTCoefficients()

See a48b24e5eb
This commit is contained in:
Sven Hesse 2016-09-30 00:20:28 +02:00 committed by Bastien Bouclet
parent 1a8773f3ab
commit 677f6f7e1f

View File

@ -1105,7 +1105,7 @@ void WMACodec::calculateMDCTCoefficients(int bSize, bool *hasChannel,
// Very high freqs: Noise
const int n = _blockLen - _coefsEnd[bSize];
const float mult1 = mult * exponents[(-1 << bSize) >> eSize];
const float mult1 = mult * exponents[(-(1 << bSize)) >> eSize];
for (int j = 0; j < n; j++) {
*coefs++ = _noiseTable[_noiseIndex] * mult1;