shithub: sox

Download patch

ref: 51abeca26dab9ece7c1f3cb7d40049568350fc2f
parent: ede09d3239241074fc19b4ee99ee67b03001f3c9
author: cbagwell <cbagwell>
date: Sat Oct 2 21:02:24 EDT 2004

fix for missing data during resampling.

--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -144,4 +144,4 @@
 distclean:
 	$(RM) *~ *.o *.raw *.sf core sox soxmix libst.a play libst-config
 	cd gsm && $(RM) *~ *.o core libgsm.a Makefile
-	$(RM) stconfig.h ststdint.h
+	$(RM) stconfig.h ststdint.h Makefile
--- a/src/sox.c
+++ b/src/sox.c
@@ -952,7 +952,7 @@
        * show no more data.
        */
       havedata = 0;
-      for(e = neffects - 2; e > input_eff; e--)
+      for(e = neffects - 2; e >= input_eff; e--)
           if (efftab[e].odone < efftab[e].olen) {
               havedata = 1;
               break;