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

Unified Diff: webrtc/modules/audio_coding/codecs/ilbc/test/iLBC_testLib.c

Issue 1174813003: Prepare to convert various types to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Review comments + resync Created 5 years, 6 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/test/iLBC_testLib.c
diff --git a/webrtc/modules/audio_coding/codecs/ilbc/test/iLBC_testLib.c b/webrtc/modules/audio_coding/codecs/ilbc/test/iLBC_testLib.c
index 1e966a7afec5402165220ad12ecdfb58d35976da..103a13650f32c2c54a0bddfd9331bc7710cc880a 100644
--- a/webrtc/modules/audio_coding/codecs/ilbc/test/iLBC_testLib.c
+++ b/webrtc/modules/audio_coding/codecs/ilbc/test/iLBC_testLib.c
@@ -139,6 +139,10 @@ int main(int argc, char* argv[])
#else
len=WebRtcIlbcfix_Encode(Enc_Inst, data, (short)(mode<<3), encoded_data);
#endif
+ if (len < 0) {
+ fprintf(stderr, "Error encoding\n");
+ exit(0);
+ }
fprintf(stderr, "\r");
#ifdef JUNK_DATA
@@ -176,6 +180,10 @@ int main(int argc, char* argv[])
if (pli==1) {
len=WebRtcIlbcfix_Decode(Dec_Inst, encoded_data, (int16_t)len, data,
&speechType);
+ if (len < 0) {
+ fprintf(stderr, "Error decoding\n");
+ exit(0);
+ }
} else {
len=WebRtcIlbcfix_DecodePlc(Dec_Inst, data, 1);
}
« no previous file with comments | « webrtc/modules/audio_coding/codecs/ilbc/test/iLBC_test.c ('k') | webrtc/modules/audio_coding/codecs/isac/fix/source/codec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698