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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 getc(stdin); | 343 getc(stdin); |
344 exit(EXIT_FAILURE); | 344 exit(EXIT_FAILURE); |
345 } | 345 } |
346 } | 346 } |
347 //=================================================================== | 347 //=================================================================== |
348 if (endfile) { | 348 if (endfile) { |
349 break; | 349 break; |
350 } | 350 } |
351 | 351 |
352 rcuStreamLen = WebRtcIsac_GetRedPayload(ISAC_main_inst, payloadRCU); | 352 rcuStreamLen = WebRtcIsac_GetRedPayload(ISAC_main_inst, payloadRCU); |
| 353 if (rcuStreamLen < 0) { |
| 354 fprintf(stderr, "\nError getting RED payload\n"); |
| 355 getc(stdin); |
| 356 exit(EXIT_FAILURE); |
| 357 } |
353 | 358 |
354 get_arrival_time(cur_framesmpls, stream_len, bottleneck, &packetData, | 359 get_arrival_time(cur_framesmpls, stream_len, bottleneck, &packetData, |
355 sampFreqKHz * 1000, sampFreqKHz * 1000); | 360 sampFreqKHz * 1000, sampFreqKHz * 1000); |
356 if (WebRtcIsac_UpdateBwEstimate( | 361 if (WebRtcIsac_UpdateBwEstimate( |
357 ISAC_main_inst, payload, stream_len, packetData.rtp_number, | 362 ISAC_main_inst, payload, stream_len, packetData.rtp_number, |
358 packetData.sample_count, packetData.arrival_time) < 0) { | 363 packetData.sample_count, packetData.arrival_time) < 0) { |
359 printf(" BWE Error at client\n"); | 364 printf(" BWE Error at client\n"); |
360 return -1; | 365 return -1; |
361 } | 366 } |
362 } | 367 } |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 str->lastArrivalTime = 0; | 567 str->lastArrivalTime = 0; |
563 | 568 |
564 str->maxPayloadLB = 0; | 569 str->maxPayloadLB = 0; |
565 str->maxPayloadUB = 0; | 570 str->maxPayloadUB = 0; |
566 str->lbBytes = 0; | 571 str->lbBytes = 0; |
567 str->ubBytes = 0; | 572 str->ubBytes = 0; |
568 | 573 |
569 return 0; | 574 return 0; |
570 }; | 575 }; |
571 #endif | 576 #endif |
OLD | NEW |