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

Unified Diff: webrtc/modules/audio_coding/codecs/g722/g722_decode.c

Issue 1225173002: Update audio code to use size_t more correctly, (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Review comments 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/g722/g722_decode.c
diff --git a/webrtc/modules/audio_coding/codecs/g722/g722_decode.c b/webrtc/modules/audio_coding/codecs/g722/g722_decode.c
index ee0eb89618d54c9ca7881422961a253df1c4418b..8fdeec162b3424900c1637d2db93c584c10592e4 100644
--- a/webrtc/modules/audio_coding/codecs/g722/g722_decode.c
+++ b/webrtc/modules/audio_coding/codecs/g722/g722_decode.c
@@ -188,8 +188,8 @@ int WebRtc_g722_decode_release(G722DecoderState *s)
}
/*- End of function --------------------------------------------------------*/
-int WebRtc_g722_decode(G722DecoderState *s, int16_t amp[],
- const uint8_t g722_data[], int len)
+size_t WebRtc_g722_decode(G722DecoderState *s, int16_t amp[],
+ const uint8_t g722_data[], size_t len)
{
static const int wl[8] = {-60, -30, 58, 172, 334, 538, 1198, 3042 };
static const int rl42[16] = {0, 7, 6, 5, 4, 3, 2, 1,
@@ -258,9 +258,9 @@ int WebRtc_g722_decode(G722DecoderState *s, int16_t amp[],
int wd2;
int wd3;
int code;
- int outlen;
+ size_t outlen;
int i;
- int j;
+ size_t j;
outlen = 0;
rhigh = 0;

Powered by Google App Engine
This is Rietveld 408576698