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

Unified Diff: webrtc/modules/audio_coding/codecs/ilbc/augmented_cb_corr.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/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..1a3735fc3db01effd4b63e40ce0433cab61bdf14 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;
/* Compute dot product for the first (lagcount-4) samples */
(*crossDotPtr) = WebRtcSpl_DotProductWithScale(target, buffer-lagcount, ilow, scale);
« no previous file with comments | « webrtc/modules/audio_coding/codecs/ilbc/augmented_cb_corr.h ('k') | webrtc/modules/audio_coding/codecs/ilbc/cb_construct.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698