diff options
author | kristerw <kristerw@pkgsrc.org> | 2005-07-09 16:05:16 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2005-07-09 16:05:16 +0000 |
commit | 83ca627ade577d14b56e614134326b687040c3b4 (patch) | |
tree | 3edcfe7e3a0115c6071466f90bb405cffeaa8bdd /audio | |
parent | cb7dba3f4b5e9bd5b2d49892bc654ab846ca29b9 (diff) | |
download | pkgsrc-83ca627ade577d14b56e614134326b687040c3b4.tar.gz |
Fix a C99 variable declaration to make this pkg compile with gcc 2.95.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/sox/distinfo | 3 | ||||
-rw-r--r-- | audio/sox/patches/patch-ab | 21 |
2 files changed, 23 insertions, 1 deletions
diff --git a/audio/sox/distinfo b/audio/sox/distinfo index afc85b625c8..2f50e8b82cf 100644 --- a/audio/sox/distinfo +++ b/audio/sox/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.7 2005/06/24 20:50:31 wiz Exp $ +$NetBSD: distinfo,v 1.8 2005/07/09 16:05:16 kristerw Exp $ SHA1 (sox-12.17.7.tar.gz) = 94fe3605f37bf2d6d3df93e8d462877d5e100fe3 RMD160 (sox-12.17.7.tar.gz) = 602c111acca325a84e743794230977d652b82a51 Size (sox-12.17.7.tar.gz) = 466570 bytes SHA1 (patch-aa) = a1e3d17b0f674dd55405879337754c16846e5b03 +SHA1 (patch-ab) = fe1a21385ad79b7a5ca8e0c4e52af8105ef9e90d diff --git a/audio/sox/patches/patch-ab b/audio/sox/patches/patch-ab new file mode 100644 index 00000000000..14a7fd4c62d --- /dev/null +++ b/audio/sox/patches/patch-ab @@ -0,0 +1,21 @@ +$NetBSD: patch-ab,v 1.8 2005/07/09 16:05:16 kristerw Exp $ + +--- src/noisered.c.orig Sat Jul 9 18:01:23 2005 ++++ src/noisered.c Sat Jul 9 18:01:52 2005 +@@ -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); |