Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: webrtc/modules/audio_coding/codecs/ilbc/xcorr_coef.c

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 53d95bfa3dd9b5d10f655a11d69e27aac40d371f..0d898c54a486af2367adbf513c884021a1391ade 100644
--- a/webrtc/modules/audio_coding/codecs/ilbc/xcorr_coef.c
+++ b/webrtc/modules/audio_coding/codecs/ilbc/xcorr_coef.c
@@ -23,16 +23,16 @@
* crossCorr*crossCorr/(energy) criteria
*---------------------------------------------------------------*/
-int WebRtcIlbcfix_XcorrCoef(
+size_t WebRtcIlbcfix_XcorrCoef(
int16_t *target, /* (i) first array */
int16_t *regressor, /* (i) second array */
- int16_t subl, /* (i) dimension arrays */
- int16_t searchLen, /* (i) the search lenght */
- int16_t offset, /* (i) samples offset between arrays */
+ size_t subl, /* (i) dimension arrays */
+ size_t searchLen, /* (i) the search lenght */
+ size_t offset, /* (i) samples offset between arrays */
int16_t step /* (i) +1 or -1 */
){
- int k;
- int16_t maxlag;
+ size_t k;
+ size_t maxlag;
int16_t pos;
int16_t max;
int16_t crossCorrScale, Energyscale;
« no previous file with comments | « webrtc/modules/audio_coding/codecs/ilbc/xcorr_coef.h ('k') | webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698