| 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++) {
|
|
|