| OLD | NEW |
| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 printf("iSAC version %s \n\n", version_number); | 178 printf("iSAC version %s \n\n", version_number); |
| 179 | 179 |
| 180 /* Loop over all command line arguments */ | 180 /* Loop over all command line arguments */ |
| 181 CodingMode = 0; | 181 CodingMode = 0; |
| 182 testNum = 0; | 182 testNum = 0; |
| 183 useAssign = 0; | 183 useAssign = 0; |
| 184 // logFile = NULL; | 184 // logFile = NULL; |
| 185 char transCodingFileName[500]; | 185 char transCodingFileName[500]; |
| 186 int16_t totFileLoop = 0; | 186 int16_t totFileLoop = 0; |
| 187 int16_t numFileLoop = 0; | 187 int16_t numFileLoop = 0; |
| 188 for (i = 1; i < argc - 2; i++) { | 188 for (i = 1; i + 2 < argc; i++) { |
| 189 if (!strcmp("-LOOP", argv[i])) { | 189 if (!strcmp("-LOOP", argv[i])) { |
| 190 i++; | 190 i++; |
| 191 totFileLoop = (int16_t)atol(argv[i]); | 191 totFileLoop = (int16_t)atol(argv[i]); |
| 192 if (totFileLoop <= 0) { | 192 if (totFileLoop <= 0) { |
| 193 fprintf(stderr, "Invalid number of runs for the given input file, %d.", | 193 fprintf(stderr, "Invalid number of runs for the given input file, %d.", |
| 194 totFileLoop); | 194 totFileLoop); |
| 195 exit(0); | 195 exit(0); |
| 196 } | 196 } |
| 197 } | 197 } |
| 198 | 198 |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 fprintf(stderr, " transcoding rate %.0f kbps", | 933 fprintf(stderr, " transcoding rate %.0f kbps", |
| 934 (double)numTransCodingBytes * 8.0 * (sampFreqKHz) / totalsmpls); | 934 (double)numTransCodingBytes * 8.0 * (sampFreqKHz) / totalsmpls); |
| 935 } | 935 } |
| 936 | 936 |
| 937 fclose(inp); | 937 fclose(inp); |
| 938 fclose(outp); | 938 fclose(outp); |
| 939 WebRtcIsac_Free(ISAC_main_inst); | 939 WebRtcIsac_Free(ISAC_main_inst); |
| 940 | 940 |
| 941 exit(0); | 941 exit(0); |
| 942 } | 942 } |
| OLD | NEW |