Skip to content

Commit

Permalink
SOUND: Initialize expPower[] in WMACodec::calculateMDCTCoefficients()
Browse files Browse the repository at this point in the history
This fixes Coverity Scan issue #173475.
  • Loading branch information
DrMcCoy committed Dec 25, 2016
1 parent 59a94a6 commit 5306faa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sound/decoders/wma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,9 @@ void WMACodec::calculateMDCTCoefficients(int bSize, bool *hasChannel,
}

// Compute power of high bands
float expPower[kHighBandSizeMax];
float expPower[kHighBandSizeMax] = {
1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f
};

const int n1 = _exponentHighSizes[bSize];
exponents = _exponents[i] + ((_highBandStart[bSize] << bSize) >> eSize);
Expand Down

0 comments on commit 5306faa

Please sign in to comment.