shithub: sox

Download patch

ref: bc2e017bfc05d0fd269b86b715be8fbe8c1c4228
parent: 67cc1a682508489aa2317a2985fccb7cb2188e62
author: rrt <rrt>
date: Mon Apr 2 13:05:47 EDT 2007

Common up a duplicated statement

--- a/src/sox.c
+++ b/src/sox.c
@@ -1451,13 +1451,12 @@
         total += len;
       } while (total < efftab[neffects-1].olen);
       output_samples += (total / ofile->desc->signal.channels);
-      efftab[neffects-1].odone = efftab[neffects-1].olen = 0;
     } else {
       /* Make it look like everything was consumed */
       output_samples += (efftab[neffects-1].olen /
                          ofile->desc->signal.channels);
-      efftab[neffects-1].odone = efftab[neffects-1].olen = 0;
     }
+    efftab[neffects-1].odone = efftab[neffects-1].olen = 0;
 
     /* if stuff still in pipeline, set up to flow effects again */
     /* When all effects have reported SOX_EOF then this check will