Index: webrtc/modules/audio_coding/codecs/g711/test/testG711.cc |
diff --git a/webrtc/modules/audio_coding/codecs/g711/test/testG711.cc b/webrtc/modules/audio_coding/codecs/g711/test/testG711.cc |
index 5675b1f8b05de33c9e5b1acc74428af5ec41cf16..fa6b26fe174168790f28fadb5eee9e3bdb1ef6a1 100644 |
--- a/webrtc/modules/audio_coding/codecs/g711/test/testG711.cc |
+++ b/webrtc/modules/audio_coding/codecs/g711/test/testG711.cc |
@@ -36,7 +36,7 @@ int main(int argc, char* argv[]) { |
char inname[80], outname[40], bitname[40]; |
FILE* inp; |
FILE* outp; |
- FILE* bitp = NULL; |
+ FILE* bitp = nullptr; |
int framecnt; |
bool endfile; |
@@ -93,17 +93,17 @@ int main(int argc, char* argv[]) { |
sscanf(argv[4], "%s", outname); |
if (argc == 6) { |
sscanf(argv[5], "%s", bitname); |
- if ((bitp = fopen(bitname, "wb")) == NULL) { |
+ if ((bitp = fopen(bitname, "wb")) == nullptr) { |
printf(" G.711: Cannot read file %s.\n", bitname); |
exit(1); |
} |
} |
- if ((inp = fopen(inname, "rb")) == NULL) { |
+ if ((inp = fopen(inname, "rb")) == nullptr) { |
printf(" G.711: Cannot read file %s.\n", inname); |
exit(1); |
} |
- if ((outp = fopen(outname, "wb")) == NULL) { |
+ if ((outp = fopen(outname, "wb")) == nullptr) { |
printf(" G.711: Cannot write file %s.\n", outname); |
exit(1); |
} |