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

Unified Diff: webrtc/modules/audio_coding/codecs/g722/test/testG722.cc

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/g722/test/testG722.cc
diff --git a/webrtc/modules/audio_coding/codecs/g722/test/testG722.cc b/webrtc/modules/audio_coding/codecs/g722/test/testG722.cc
index 6d0c4322e6d7e7cc83f46ec6f36aa26c444f7092..9b2f54cc4916caf61d291a35f2a25773926ea937 100644
--- a/webrtc/modules/audio_coding/codecs/g722/test/testG722.cc
+++ b/webrtc/modules/audio_coding/codecs/g722/test/testG722.cc
@@ -83,6 +83,10 @@ int main(int argc, char* argv[])
/* Get frame length */
framelength = atoi(argv[1]);
+ if (framelength < 0) {
+ printf(" G.722: Invalid framelength %d.\n", framelength);
+ exit(1);
+ }
/* Get Input and Output files */
sscanf(argv[2], "%s", inname);

Powered by Google App Engine
This is Rietveld 408576698