shithub: sox

Download patch

ref: 8568f0f0450a1a8e5e595f618ea5bd257b15edc4
parent: 592ed220b384f2ee3c3edc5d7bba93669cf0a0c0
author: cbagwell <cbagwell>
date: Wed Feb 16 19:28:33 EST 2011

libpng15 seems to require application to include zlib.h.  Do
this to be compatible.  #3184238

--- a/ChangeLog
+++ b/ChangeLog
@@ -44,6 +44,10 @@
   o F.R. [3051700] spectrogram -r for `raw' spectrogram, no legend.  (robs)
   o Fix -w option on stats effect. (Ronald Sprouse)
   o Fix segfault with some ladspa plugins (Thor Andreassen)
+  o Optionally look for png.h in libpng directory to support OpenBSD
+    packaging.  Helps enable spectrograph effect.
+  o libpng15 requires application to include zlib.h header file.
+    Add this to spectrograph effect. [3184238]
 
 Other new features:
 
@@ -56,8 +60,6 @@
     (Doug Cook)
   o cmake now compiles waveaudio driver under windows environment. (cbagwell)
     [3072672]
-  o Optionally look for png.h in libpng directory to support OpenBSD
-    packaging.
 
 sox-14.3.1	2010-04-11
 ----------
--- a/src/spectrogram.c
+++ b/src/spectrogram.c
@@ -29,6 +29,7 @@
 #else
 #include <png.h>
 #endif
+#include <zlib.h>
 
 #define MAX_FFT_SIZE 4096
 #define is_p2(x) !(x & (x - 1))