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

Unified Diff: webrtc/modules/audio_coding/neteq/test/RTPencode.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
« no previous file with comments | « webrtc/modules/audio_coding/neteq/normal.cc ('k') | webrtc/modules/audio_processing/ns/nsx_core_neon.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/neteq/test/RTPencode.cc
diff --git a/webrtc/modules/audio_coding/neteq/test/RTPencode.cc b/webrtc/modules/audio_coding/neteq/test/RTPencode.cc
index 7d8d60de51a593e0587464b2589591cbceb69474..1ef9ce535ad70717b0c59626893ea01b528dd169 100644
--- a/webrtc/modules/audio_coding/neteq/test/RTPencode.cc
+++ b/webrtc/modules/audio_coding/neteq/test/RTPencode.cc
@@ -450,7 +450,10 @@ int main(int argc, char* argv[]) {
CHECK_NOT_NULL(out_file);
printf("Output file: %s\n\n", argv[2]);
packet_size = atoi(argv[3]);
- CHECK_NOT_NULL(packet_size);
+ if (packet_size <= 0) {
+ printf("Packet size %d must be positive", packet_size);
+ return -1;
+ }
printf("Packet size: %i\n", packet_size);
// check for stereo
« no previous file with comments | « webrtc/modules/audio_coding/neteq/normal.cc ('k') | webrtc/modules/audio_processing/ns/nsx_core_neon.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698