Skip to content

Commit 9346a03

Browse files
wegylexyjmvalin
authored andcommitted
Access files in binary mode
1 parent 9acc1e5 commit 9346a03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/rnnoise_demo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ int main(int argc, char **argv) {
4141
fprintf(stderr, "usage: %s <noisy speech> <output denoised>\n", argv[0]);
4242
return 1;
4343
}
44-
f1 = fopen(argv[1], "r");
45-
fout = fopen(argv[2], "w");
44+
f1 = fopen(argv[1], "rb");
45+
fout = fopen(argv[2], "wb");
4646
while (1) {
4747
short tmp[FRAME_SIZE];
4848
fread(tmp, sizeof(short), FRAME_SIZE, f1);

0 commit comments

Comments
 (0)