shithub: sox

Download patch

ref: 8c515152b27b4170697d093792af8cb7bade0bfe
parent: ecd4253d846232d0982e479b4adf955b33a42a9f
author: robs <robs>
date: Mon Jul 21 02:54:56 EDT 2008

fix fade-out stop-time for multi-channel input

--- a/src/fade.c
+++ b/src/fade.c
@@ -130,7 +130,7 @@
           return lsx_usage(effp);
 
         if (!fade->out_stop) {
-          fade->out_stop = effp->in_signal.length;
+          fade->out_stop = effp->in_signal.length / effp->in_signal.channels;
           if (!fade->out_stop) {
             sox_fail("cannot fade out: audio length is neither known nor given");
             return SOX_EOF;