summaryrefslogtreecommitdiff
path: root/audio/sox/files/patch-src_noisered.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/sox/files/patch-src_noisered.c')
-rw-r--r--audio/sox/files/patch-src_noisered.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/audio/sox/files/patch-src_noisered.c b/audio/sox/files/patch-src_noisered.c
new file mode 100644
index 000000000000..c8dd2d57ceb8
--- /dev/null
+++ b/audio/sox/files/patch-src_noisered.c
@@ -0,0 +1,22 @@
+
+$FreeBSD$
+
+--- src/noisered.c.orig
++++ src/noisered.c
+@@ -126,6 +126,7 @@
+ * due to overlapping windows. */
+ static void reduce_noise(chandata_t* chan, float* window, float level)
+ {
++ int i;
+ float *inr = (float*)calloc(WINDOWSIZE, sizeof(float));
+ float *ini = (float*)calloc(WINDOWSIZE, sizeof(float));
+ float *outr = (float*)calloc(WINDOWSIZE, sizeof(float));
+@@ -135,8 +136,6 @@
+ static int callnum = 0;
+
+ callnum ++;
+-
+- int i;
+
+ for (i = 0; i < FREQCOUNT; i ++) {
+ assert(smoothing[i] >= 0 && smoothing[i] <= 1);