[FFmpeg-cvslog] r11518 - trunk/libavcodec/ac3enc.c

reimar subversion
Sat Jan 12 18:37:37 CET 2008


Author: reimar
Date: Sat Jan 12 18:37:36 2008
New Revision: 11518

Log:
Use FFSWAP instead of "manual" swap


Modified:
   trunk/libavcodec/ac3enc.c

Modified: trunk/libavcodec/ac3enc.c
==============================================================================
--- trunk/libavcodec/ac3enc.c	(original)
+++ trunk/libavcodec/ac3enc.c	Sat Jan 12 18:37:36 2008
@@ -149,13 +149,9 @@ static void fft(IComplex *z, int ln)
     /* 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 */




More information about the ffmpeg-cvslog mailing list