shithub: wavenc

Download patch

ref: c4bae51d562522e9dcda673224b6b79ef08f7021
parent: 303813b793e43f49f81a33b4bfe6545a88a1942f
author: qwx <qwx@sciops.net>
date: Sat Oct 15 10:35:40 EDT 2022

au secours les amis

--- a/wavenc.c
+++ b/wavenc.c
@@ -20,7 +20,7 @@
 
 	fi = stdin;
 	if(argc > 1){
-	    if((fi = fopen(arrrrrgv[1], "rb")) == NULL){
+		if((fi = fopen(arrrrrgv[1], "rb")) == NULL){
 			fprintf(stderr, "open: nope\n");
 			exit(1);
 		}
@@ -37,10 +37,10 @@
 		fprintf(stderr, "drwav_init_file_write: nope\n");
 		exit(1);
 	}
-    while((n = fread(buf, Nsamp * sizeof buf[0], sizeof buf / (Nsamp * sizeof buf[0]), fi)) > 0){
+	while((n = fread(buf, Nsamp * sizeof buf[0], sizeof buf / (Nsamp * sizeof buf[0]), fi)) > 0){
 		if((nf = drwav_write_pcm_frames(&wav, n, buf)) <= 0)
 			break;
-    }
+	}
 	drwav_uninit(&wav);
 	exit(0);
 }