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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 } 225 }
226 226
227 /* Print version number */ 227 /* Print version number */
228 WebRtcIsacfix_version(version_number); 228 WebRtcIsacfix_version(version_number);
229 printf("iSAC version %s \n\n", version_number); 229 printf("iSAC version %s \n\n", version_number);
230 230
231 /* Loop over all command line arguments */ 231 /* Loop over all command line arguments */
232 CodingMode = 0; 232 CodingMode = 0;
233 testNum = 0; 233 testNum = 0;
234 testCE = 0; 234 testCE = 0;
235 for (i = 1; i < argc-2;i++) { 235 for (i = 1; i + 2 < argc; i++) {
236 /* Instantaneous mode */ 236 /* Instantaneous mode */
237 if (!strcmp ("-I", argv[i])) { 237 if (!strcmp ("-I", argv[i])) {
238 printf("\nInstantaneous BottleNeck\n"); 238 printf("\nInstantaneous BottleNeck\n");
239 CodingMode = 1; 239 CodingMode = 1;
240 i++; 240 i++;
241 } 241 }
242 242
243 /* Set (initial) bottleneck value */ 243 /* Set (initial) bottleneck value */
244 if (!strcmp ("-INITRATE", argv[i])) { 244 if (!strcmp ("-INITRATE", argv[i])) {
245 rateBPS = atoi(argv[i + 1]); 245 rateBPS = atoi(argv[i + 1]);
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 fclose(inp); 827 fclose(inp);
828 fclose(outp); 828 fclose(outp);
829 fclose(outbits); 829 fclose(outbits);
830 830
831 if ( testCE == 1) { 831 if ( testCE == 1) {
832 WebRtcIsacfix_FreeInternal(ISAC_main_inst); 832 WebRtcIsacfix_FreeInternal(ISAC_main_inst);
833 } 833 }
834 WebRtcIsacfix_Free(ISAC_main_inst); 834 WebRtcIsacfix_Free(ISAC_main_inst);
835 return 0; 835 return 0;
836 } 836 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698