Index: webrtc/modules/audio_coding/codecs/ilbc/xcorr_coef.c |
diff --git a/webrtc/modules/audio_coding/codecs/ilbc/xcorr_coef.c b/webrtc/modules/audio_coding/codecs/ilbc/xcorr_coef.c |
index 328a5feca7d59776fcb11f7175f4854ca63b091a..53d95bfa3dd9b5d10f655a11d69e27aac40d371f 100644 |
--- a/webrtc/modules/audio_coding/codecs/ilbc/xcorr_coef.c |
+++ b/webrtc/modules/audio_coding/codecs/ilbc/xcorr_coef.c |
@@ -57,11 +57,11 @@ int WebRtcIlbcfix_XcorrCoef( |
if (step==1) { |
max=WebRtcSpl_MaxAbsValueW16(regressor, subl + searchLen - 1); |
rp_beg = regressor; |
- rp_end = ®ressor[subl]; |
+ rp_end = regressor + subl; |
} else { /* step==-1 */ |
- max=WebRtcSpl_MaxAbsValueW16(®ressor[-searchLen], subl + searchLen - 1); |
- rp_beg = ®ressor[-1]; |
- rp_end = ®ressor[subl-1]; |
+ max = WebRtcSpl_MaxAbsValueW16(regressor - searchLen, subl + searchLen - 1); |
+ rp_beg = regressor - 1; |
+ rp_end = regressor + subl - 1; |
} |
/* Introduce a scale factor on the Energy in int32_t in |