aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3enc.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-01-12 17:37:36 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-01-12 17:37:36 +0000
commitf952b30cd1aa9e0611e84bf2b3a732e6da13b150 (patch)
tree002f79f20c6cae931b62cd97da6b84538efa5af8 /libavcodec/ac3enc.c
parente5d8ccd72728069b6c413e3933fea6db37b584a1 (diff)
downloadffmpeg-f952b30cd1aa9e0611e84bf2b3a732e6da13b150.tar.gz
Use FFSWAP instead of "manual" swap
Originally committed as revision 11518 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r--libavcodec/ac3enc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index 4e1fe8e475..5243b4fbc4 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -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 */