Skip to content
Snippets Groups Projects
Commit 9a7f3e4a authored by Marcus Asteborg's avatar Marcus Asteborg Committed by Jean-Marc Valin
Browse files

Open files in binary mode to enable dump_data to work properly on Windows

parent eeb7615b
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ int main(int argc, char **argv) {
fprintf(stderr,"Error opening input .s16 16kHz speech input file: %s\n", argv[2]);
exit(1);
}
ffeat = fopen(argv[3], "w");
ffeat = fopen(argv[3], "wb");
if (ffeat == NULL) {
fprintf(stderr,"Error opening output feature file: %s\n", argv[3]);
exit(1);
......@@ -194,7 +194,7 @@ int main(int argc, char **argv) {
return 0;
}
if (training) {
fpcm = fopen(argv[4], "w");
fpcm = fopen(argv[4], "wb");
if (fpcm == NULL) {
fprintf(stderr,"Error opening output PCM file: %s\n", argv[4]);
exit(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment