shithub: sox

Download patch

ref: b57465cd4272be3575d6b05ad6df18d11c7a7b8f
parent: 72bcef603c6b6ddc54ba2a33556390286c332b7c
author: rrt <rrt>
date: Sat Jan 20 12:39:05 EST 2007

Small simplification.

--- a/src/skelform.c
+++ b/src/skelform.c
@@ -91,8 +91,7 @@
   unsigned char sample;
 
   /* Always return a full frame of audio data */
-  if (len % ft->signal.size)
-    len -= (len % ft->signal.size);
+  len -= len % ft->signal.size;
 
   for (done = 0; done < len; done++) {
     if (feof(ft->fp)) /* no more samples */