Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2012-10-27 12:25:28 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2012-10-27 12:25:28 +0400
commit1b60e6a6b76878deea808df91cb62bfa9ea7bda9 (patch)
tree9623d0ce1800ff1d43dacbc4a28bf2d6fe084670
parent745aef855918a4d042e5ccbdbb15c8a53bff8172 (diff)
Make a variable const to help the optimizer
-rw-r--r--decoder/LAVAudio/PostProcessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/LAVAudio/PostProcessor.cpp b/decoder/LAVAudio/PostProcessor.cpp
index 71516d05..0e8c898a 100644
--- a/decoder/LAVAudio/PostProcessor.cpp
+++ b/decoder/LAVAudio/PostProcessor.cpp
@@ -647,7 +647,7 @@ HRESULT CLAVAudio::PerformMixing(BufferDetails *buffer)
BOOL bNeedNormalize = (m_fMixingClipThreshold > 1.0f);
float *pfOut = (float *)pOut;
for (DWORD i = 0; i < dwSamples; i++) {
- float fVal = abs(pfOut[i]);
+ const float fVal = abs(pfOut[i]);
if (fVal > m_fMixingClipThreshold) {
m_fMixingClipThreshold = fVal;
bNeedNormalize = TRUE;