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 2e5badd82ceba870e32b980ed4abb66c1beb27f9..4cef8f7b3b9e92bf03e5a4970b090a3809289f0e 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 |
@@ -73,10 +73,10 @@ int main(int argc, char* argv[]) { |
FILE* plFile; |
int32_t sendBN; |
-#ifdef _DEBUG |
+#if !defined(NDEBUG) |
FILE* fy; |
double kbps; |
-#endif /* _DEBUG */ |
+#endif |
size_t totalbits = 0; |
int totalsmpls = 0; |
@@ -103,12 +103,12 @@ int main(int argc, char* argv[]) { |
BottleNeckModel BN_data; |
-#ifdef _DEBUG |
+#if !defined(NDEBUG) |
fy = fopen("bit_rate.dat", "w"); |
fclose(fy); |
fy = fopen("bytes_frames.dat", "w"); |
fclose(fy); |
-#endif /* _DEBUG */ |
+#endif |
/* Handling wrong input arguments in the command line */ |
if ((argc < 3) || (argc > 17)) { |
@@ -885,14 +885,14 @@ int main(int argc, char* argv[]) { |
totalsmpls += declen; |
totalbits += 8 * stream_len; |
-#ifdef _DEBUG |
+#if !defined(NDEBUG) |
kbps = ((double)sampFreqKHz * 1000.) / ((double)cur_framesmpls) * 8.0 * |
stream_len / 1000.0; // kbits/s |
fy = fopen("bit_rate.dat", "a"); |
fprintf(fy, "Frame %i = %0.14f\n", framecnt, kbps); |
fclose(fy); |
-#endif /* _DEBUG */ |
+#endif |
} |
printf("\n"); |
printf("total bits = %" PRIuS " bits\n", totalbits); |