| 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 3490461d21545f3585fca4a0fcba0e21b1a562a3..5a9165435376dd7fbcc0e482b2d50c1613aa32d4 100644
|
| --- a/webrtc/modules/audio_coding/codecs/ilbc/xcorr_coef.c
|
| +++ b/webrtc/modules/audio_coding/codecs/ilbc/xcorr_coef.c
|
| @@ -57,11 +57,12 @@ int WebRtcIlbcfix_XcorrCoef(
|
| if (step==1) {
|
| max=WebRtcSpl_MaxAbsValueW16(regressor, (int16_t)(subl+searchLen-1));
|
| rp_beg = regressor;
|
| - rp_end = ®ressor[subl];
|
| + rp_end = regressor + subl;
|
| } else { /* step==-1 */
|
| - max=WebRtcSpl_MaxAbsValueW16(®ressor[-searchLen], (int16_t)(subl+searchLen-1));
|
| - rp_beg = ®ressor[-1];
|
| - rp_end = ®ressor[subl-1];
|
| + max = WebRtcSpl_MaxAbsValueW16(regressor - searchLen,
|
| + (int16_t)(subl + searchLen - 1));
|
| + rp_beg = regressor - 1;
|
| + rp_end = regressor + subl - 1;
|
| }
|
|
|
| /* Introduce a scale factor on the Energy in int32_t in
|
|
|