shithub: sox

Download patch

ref: 30112cdfaca3ffe9d8869322e0ee07c96a59152c
parent: 48c438236b27754a525b8bd942b8af46e6b2b264
author: rrt <rrt>
date: Wed Dec 27 14:42:33 EST 2006

swap works idempotently

--- a/src/swap.c
+++ b/src/swap.c
@@ -122,11 +122,7 @@
 
     }
 
-    for (i = 0; i < (int)effp->outinfo.channels; ++i)
-      if (swap->order[i] != i)
-        return ST_SUCCESS;
-
-    return ST_EFF_NULL;
+    return ST_SUCCESS;
 }
 
 /*