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

Unified Diff: webrtc/modules/audio_coding/codecs/g722/g722_encode.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/g722/g722_encode.c
diff --git a/webrtc/modules/audio_coding/codecs/g722/g722_encode.c b/webrtc/modules/audio_coding/codecs/g722/g722_encode.c
index bed2d218b19adfe606e790808924fc13be5a472b..01ec127ca18d5215a86ad53dd5768e4bbdddbb1e 100644
--- a/webrtc/modules/audio_coding/codecs/g722/g722_encode.c
+++ b/webrtc/modules/audio_coding/codecs/g722/g722_encode.c
@@ -202,8 +202,8 @@ int16_t limitValues (int16_t rl)
}
#endif
-int WebRtc_g722_encode(G722EncoderState *s, uint8_t g722_data[],
- const int16_t amp[], int len)
+size_t WebRtc_g722_encode(G722EncoderState *s, uint8_t g722_data[],
+ const int16_t amp[], size_t len)
{
static const int q6[32] =
{
@@ -275,11 +275,11 @@ int WebRtc_g722_encode(G722EncoderState *s, uint8_t g722_data[],
int eh;
int mih;
int i;
- int j;
+ size_t j;
/* Low and high band PCM from the QMF */
int xlow;
int xhigh;
- int g722_bytes;
+ size_t g722_bytes;
/* Even and odd tap accumulators */
int sumeven;
int sumodd;
« no previous file with comments | « webrtc/modules/audio_coding/codecs/g722/g722_enc_dec.h ('k') | webrtc/modules/audio_coding/codecs/g722/g722_interface.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698