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

Unified Diff: webrtc/modules/audio_coding/codecs/ilbc/cb_construct.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/cb_construct.c
diff --git a/webrtc/modules/audio_coding/codecs/ilbc/cb_construct.c b/webrtc/modules/audio_coding/codecs/ilbc/cb_construct.c
index 9d11b83accbd83bc00c859a0e24ab938faf6c77e..cacf3ace2895afe0cc7f6d5379d2f9d5cc90bd95 100644
--- a/webrtc/modules/audio_coding/codecs/ilbc/cb_construct.c
+++ b/webrtc/modules/audio_coding/codecs/ilbc/cb_construct.c
@@ -29,10 +29,10 @@ void WebRtcIlbcfix_CbConstruct(
int16_t *index, /* (i) Codebook indices */
int16_t *gain_index, /* (i) Gain quantization indices */
int16_t *mem, /* (i) Buffer for codevector construction */
- int16_t lMem, /* (i) Length of buffer */
- int16_t veclen /* (i) Length of vector */
+ size_t lMem, /* (i) Length of buffer */
+ size_t veclen /* (i) Length of vector */
){
- int j;
+ size_t j;
int16_t gain[CB_NSTAGES];
/* Stack based */
int16_t cbvec0[SUBL];
@@ -50,9 +50,9 @@ void WebRtcIlbcfix_CbConstruct(
/* codebook vector construction and construction of total vector */
/* Stack based */
- WebRtcIlbcfix_GetCbVec(cbvec0, mem, index[0], lMem, veclen);
- WebRtcIlbcfix_GetCbVec(cbvec1, mem, index[1], lMem, veclen);
- WebRtcIlbcfix_GetCbVec(cbvec2, mem, index[2], lMem, veclen);
+ WebRtcIlbcfix_GetCbVec(cbvec0, mem, (size_t)index[0], lMem, veclen);
+ WebRtcIlbcfix_GetCbVec(cbvec1, mem, (size_t)index[1], lMem, veclen);
+ WebRtcIlbcfix_GetCbVec(cbvec2, mem, (size_t)index[2], lMem, veclen);
gainPtr = &gain[0];
for (j=0;j<veclen;j++) {
« no previous file with comments | « webrtc/modules/audio_coding/codecs/ilbc/cb_construct.h ('k') | webrtc/modules/audio_coding/codecs/ilbc/cb_mem_energy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698