Index: webrtc/modules/audio_coding/neteq/expand.cc |
diff --git a/webrtc/modules/audio_coding/neteq/expand.cc b/webrtc/modules/audio_coding/neteq/expand.cc |
index 10f6a9f5bf4622f56ed59f338ab53a7098b4ce7a..ae12e504616844cc62515bd2a72ce62b6c75723b 100644 |
--- a/webrtc/modules/audio_coding/neteq/expand.cc |
+++ b/webrtc/modules/audio_coding/neteq/expand.cc |
@@ -441,8 +441,8 @@ void Expand::AnalyzeSignal(int16_t* random_vector) { |
&audio_history[signal_length - correlation_length - start_index |
- correlation_lags], |
correlation_length + start_index + correlation_lags - 1); |
- correlation_scale = ((31 - WebRtcSpl_NormW32(signal_max * signal_max)) |
- + (31 - WebRtcSpl_NormW32(correlation_length))) - 31; |
+ correlation_scale = (31 - WebRtcSpl_NormW32(signal_max * signal_max)) + |
+ (31 - WebRtcSpl_NormW32(correlation_length)) - 31; |
correlation_scale = std::max(0, correlation_scale); |
// Calculate the correlation, store in |correlation_vector2|. |