Chromium Code Reviews| Index: webrtc/modules/audio_coding/codecs/ilbc/augmented_cb_corr.c |
| diff --git a/webrtc/modules/audio_coding/codecs/ilbc/augmented_cb_corr.c b/webrtc/modules/audio_coding/codecs/ilbc/augmented_cb_corr.c |
| index c24b4a6ac0cb48c146e09501056bfea34e65aa66..aec94a5e03283c9a64a9b308c7502f9984c8f3c2 100644 |
| --- a/webrtc/modules/audio_coding/codecs/ilbc/augmented_cb_corr.c |
| +++ b/webrtc/modules/audio_coding/codecs/ilbc/augmented_cb_corr.c |
| @@ -28,14 +28,14 @@ void WebRtcIlbcfix_AugmentedCbCorr( |
| int32_t *crossDot, /* (o) The cross correlation between |
| the target and the Augmented |
| vector */ |
| - int16_t low, /* (i) Lag to start from (typically |
| + size_t low, /* (i) Lag to start from (typically |
| 20) */ |
| - int16_t high, /* (i) Lag to end at (typically 39) */ |
| + size_t high, /* (i) Lag to end at (typically 39) */ |
| int scale) /* (i) Scale factor to use for |
| the crossDot */ |
| { |
| - int lagcount; |
| - int16_t ilow; |
| + size_t lagcount; |
| + size_t ilow; |
| int16_t *targetPtr; |
| int32_t *crossDotPtr; |
| int16_t *iSPtr=interpSamples; |
| @@ -46,7 +46,7 @@ void WebRtcIlbcfix_AugmentedCbCorr( |
| crossDotPtr=crossDot; |
| for (lagcount=low; lagcount<=high; lagcount++) { |
| - ilow = (int16_t) (lagcount-4); |
| + ilow = lagcount-4; |
|
kwiberg-webrtc
2015/08/11 09:33:21
Fix spacing while you touch the line?
Peter Kasting
2015/08/14 00:56:09
Done.
|
| /* Compute dot product for the first (lagcount-4) samples */ |
| (*crossDotPtr) = WebRtcSpl_DotProductWithScale(target, buffer-lagcount, ilow, scale); |