Miscellaneous changes split from https://codereview.webrtc.org/1230503003 .
These are mostly trivial changes and are separated out just to reduce the diff on that change to the minimum possible. Note explanatory comments on patch set 1. BUG=none TEST=none Review URL: https://codereview.webrtc.org/1235643003 Cr-Commit-Position: refs/heads/master@{#9617}
This commit is contained in:
@ -662,8 +662,9 @@ int main(int argc, char* argv[]) {
|
||||
if (stream_len < 0) {
|
||||
/* exit if returned with error */
|
||||
errtype = WebRtcIsac_GetErrorCode(ISAC_main_inst);
|
||||
printf("\n\nError in encoder: %d.\n\n", errtype);
|
||||
fprintf(stderr, "Error in encoder: %d.\n", errtype);
|
||||
cout << flush;
|
||||
exit(0);
|
||||
}
|
||||
cur_framesmpls += samplesIn10Ms;
|
||||
/* exit encoder loop if the encoder returned a bitstream */
|
||||
|
||||
@ -350,6 +350,11 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
rcuStreamLen = WebRtcIsac_GetRedPayload(ISAC_main_inst, payloadRCU);
|
||||
if (rcuStreamLen < 0) {
|
||||
fprintf(stderr, "\nError getting RED payload\n");
|
||||
getc(stdin);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
get_arrival_time(cur_framesmpls, stream_len, bottleneck, &packetData,
|
||||
sampFreqKHz * 1000, sampFreqKHz * 1000);
|
||||
|
||||
Reference in New Issue
Block a user