shithub: sox

Download patch

ref: ba30b3af35088ff41344b40e1e2247d7db14bde0
parent: 8b07535150c66640c77af3bb97a023b4fc6f25b4
author: cbagwell <cbagwell>
date: Sat Mar 18 16:05:50 EST 2006

Fix uninitialized variable in pitch.

--- a/Changelog
+++ b/Changelog
@@ -31,6 +31,8 @@
   o Reduced the window size greatly on the silence effect to
     prevent leaving in silence that looked like noise still based
     on RMS values.
+  o Prevent infinite loop in pitch effect from uninitialize variable.
+    Frank Heckenbach
 
 sox-12.17.9
 -----------
--- a/src/pitch.c
+++ b/src/pitch.c
@@ -387,6 +387,8 @@
 
     /* computer inner stuff... */
 
+    pitch->state = pi_input;
+
     /* Should I trust pow?
      * BTW, the twelve's root of two is 1.0594630943592952645618252,
      * if we consider an equal temperament.