Index: webrtc/modules/audio_coding/neteq/merge.cc |
diff --git a/webrtc/modules/audio_coding/neteq/merge.cc b/webrtc/modules/audio_coding/neteq/merge.cc |
index 23382acdd30f17a8b9bf9a2156b94c5772e6bdce..44fc511c45f545848044a914be1f68174afba4c6 100644 |
--- a/webrtc/modules/audio_coding/neteq/merge.cc |
+++ b/webrtc/modules/audio_coding/neteq/merge.cc |
@@ -311,7 +311,7 @@ int16_t Merge::CorrelateAndPeakSearch(int16_t expanded_max, int16_t input_max, |
const int max_corr_length = kMaxCorrelationLength; |
int stop_position_downsamp = std::min( |
max_corr_length, expand_->max_lag() / (fs_mult_ * 2) + 1); |
- int correlation_shift = 0; |
+ int16_t correlation_shift = 0; |
if (expanded_max * input_max > 26843546) { |
correlation_shift = 3; |
} |
@@ -330,7 +330,7 @@ int16_t Merge::CorrelateAndPeakSearch(int16_t expanded_max, int16_t input_max, |
int16_t* correlation_ptr = &correlation16[pad_length]; |
int32_t max_correlation = WebRtcSpl_MaxAbsValueW32(correlation, |
stop_position_downsamp); |
- int norm_shift = std::max(0, 17 - WebRtcSpl_NormW32(max_correlation)); |
+ int16_t norm_shift = std::max(0, 17 - WebRtcSpl_NormW32(max_correlation)); |
WebRtcSpl_VectorBitShiftW32ToW16(correlation_ptr, stop_position_downsamp, |
correlation, norm_shift); |