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

Unified Diff: webrtc/modules/audio_coding/codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc

Issue 1168753002: Match existing type usage better. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Attempted test fix 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
Index: webrtc/modules/audio_coding/codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc
diff --git a/webrtc/modules/audio_coding/codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc b/webrtc/modules/audio_coding/codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc
index 717da09b6e26ce5f80f00a36109d29c17f06c102..f5b3a8493d347c4e3ec5e1a1ac5189e334539136 100644
--- a/webrtc/modules/audio_coding/codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc
+++ b/webrtc/modules/audio_coding/codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc
@@ -54,7 +54,8 @@ int main(int argc, char* argv[]) {
double starttime, runtime, length_file;
int16_t stream_len = 0;
- int16_t declen = 0, lostFrame = 0, declenTC = 0;
+ int16_t declen = 0, declenTC = 0;
+ bool lostFrame = false;
int16_t shortdata[SWBFRAMESAMPLES_10ms];
int16_t vaddata[SWBFRAMESAMPLES_10ms * 3];
@@ -731,7 +732,7 @@ int main(int argc, char* argv[]) {
if (!lostFrame) {
lostFrame = ((rand() % 100) < packetLossPercent);
} else {
- lostFrame = 0;
+ lostFrame = false;
}
// RED.

Powered by Google App Engine
This is Rietveld 408576698