[FFmpeg-devel] [PATCH] Use FFSWAP in ac3enc fft
Reimar Döffinger
Reimar.Doeffinger
Sat Jan 12 17:55:59 CET 2008
Hello,
I stumbled of this "manual" swap, ok to replace?
Greetings,
Reimar D?ffinger
-------------- next part --------------
Index: libavcodec/ac3enc.c
===================================================================
--- libavcodec/ac3enc.c (revision 11517)
+++ libavcodec/ac3enc.c (working copy)
@@ -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 */
More information about the ffmpeg-devel
mailing list