Index: webrtc/modules/audio_coding/codecs/ilbc/get_cd_vec.c |
diff --git a/webrtc/modules/audio_coding/codecs/ilbc/get_cd_vec.c b/webrtc/modules/audio_coding/codecs/ilbc/get_cd_vec.c |
index cf05ce3310a2587e1c2e2329418813d5b45e3353..d7c2e75553b8e5225ace669f2fb258e0d5215c8e 100644 |
--- a/webrtc/modules/audio_coding/codecs/ilbc/get_cd_vec.c |
+++ b/webrtc/modules/audio_coding/codecs/ilbc/get_cd_vec.c |
@@ -27,12 +27,12 @@ |
void WebRtcIlbcfix_GetCbVec( |
int16_t *cbvec, /* (o) Constructed codebook vector */ |
int16_t *mem, /* (i) Codebook buffer */ |
- int16_t index, /* (i) Codebook index */ |
- int16_t lMem, /* (i) Length of codebook buffer */ |
- int16_t cbveclen /* (i) Codebook vector length */ |
+ size_t index, /* (i) Codebook index */ |
+ size_t lMem, /* (i) Length of codebook buffer */ |
+ size_t cbveclen /* (i) Codebook vector length */ |
){ |
- int16_t k, base_size; |
- int16_t lag; |
+ size_t k, base_size; |
+ size_t lag; |
/* Stack based */ |
int16_t tempbuff2[SUBL+5]; |
@@ -58,7 +58,7 @@ void WebRtcIlbcfix_GetCbVec( |
/* Calculate lag */ |
- k = (int16_t)(2 * (index - (lMem - cbveclen + 1))) + cbveclen; |
+ k = (2 * (index - (lMem - cbveclen + 1))) + cbveclen; |
lag = k / 2; |
@@ -70,7 +70,7 @@ void WebRtcIlbcfix_GetCbVec( |
else { |
- int16_t memIndTest; |
+ size_t memIndTest; |
/* first non-interpolated vectors */ |
@@ -100,7 +100,7 @@ void WebRtcIlbcfix_GetCbVec( |
/* do filtering */ |
WebRtcSpl_FilterMAFastQ12( |
&mem[memIndTest+7], tempbuff2, (int16_t*)WebRtcIlbcfix_kCbFiltersRev, |
- CB_FILTERLEN, (int16_t)(cbveclen+5)); |
+ CB_FILTERLEN, cbveclen+5); |
/* Calculate lag index */ |
lag = (cbveclen<<1)-20+index-base_size-lMem-1; |