changeset 6140:bf4d7ce32af5 libavcodec

Use FFSWAP instead of "manual" swap
author reimar
date Sat, 12 Jan 2008 17:37:36 +0000
parents 5077d1562573
children 932523fb0562
files ac3enc.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ac3enc.c	Sat Jan 12 11:11:19 2008 +0000
+++ b/ac3enc.c	Sat Jan 12 17:37:36 2008 +0000
@@ -149,13 +149,9 @@
     /* reverse */
     for(j=0;j<np;j++) {
         int k;
-        IComplex tmp;
         k = fft_rev[j];
-        if (k < j) {
-            tmp = z[k];
-            z[k] = z[j];
-            z[j] = tmp;
-        }
+        if (k < j)
+            FFSWAP(IComplex, z[k], z[j]);
     }
 
     /* pass 0 */