summaryrefslogtreecommitdiff
path: root/libavcodec/fft.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-03-17 19:22:31 +0000
committerMåns Rullgård <mans@mansr.com>2008-03-17 19:22:31 +0000
commit4f54a3b8b42db6ac8a696297fc12aeb5238900b1 (patch)
tree5bbdddedbeee440633fbc8aca4d864fe0235d474 /libavcodec/fft.c
parent844ea46aebeb322ec4d0cd9838825bf99bb54def (diff)
downloadffmpeg-4f54a3b8b42db6ac8a696297fc12aeb5238900b1.tar.gz
indentation
Originally committed as revision 12478 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/fft.c')
-rw-r--r--libavcodec/fft.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/libavcodec/fft.c b/libavcodec/fft.c
index 99ad48d0e6..7ef5d37c73 100644
--- a/libavcodec/fft.c
+++ b/libavcodec/fft.c
@@ -87,33 +87,33 @@ int ff_fft_init(FFTContext *s, int nbits, int inverse)
#endif
/* compute constant table for HAVE_SSE version */
- if (shuffle) {
- int np, nblocks, np2, l;
- FFTComplex *q;
+ if (shuffle) {
+ int np, nblocks, np2, l;
+ FFTComplex *q;
- np = 1 << nbits;
- nblocks = np >> 3;
- np2 = np >> 1;
- s->exptab1 = av_malloc(np * 2 * sizeof(FFTComplex));
- if (!s->exptab1)
- goto fail;
- q = s->exptab1;
- do {
- for(l = 0; l < np2; l += 2 * nblocks) {
- *q++ = s->exptab[l];
- *q++ = s->exptab[l + nblocks];
+ np = 1 << nbits;
+ nblocks = np >> 3;
+ np2 = np >> 1;
+ s->exptab1 = av_malloc(np * 2 * sizeof(FFTComplex));
+ if (!s->exptab1)
+ goto fail;
+ q = s->exptab1;
+ do {
+ for(l = 0; l < np2; l += 2 * nblocks) {
+ *q++ = s->exptab[l];
+ *q++ = s->exptab[l + nblocks];
- q->re = -s->exptab[l].im;
- q->im = s->exptab[l].re;
- q++;
- q->re = -s->exptab[l + nblocks].im;
- q->im = s->exptab[l + nblocks].re;
- q++;
- }
- nblocks = nblocks >> 1;
- } while (nblocks != 0);
- av_freep(&s->exptab);
- }
+ q->re = -s->exptab[l].im;
+ q->im = s->exptab[l].re;
+ q++;
+ q->re = -s->exptab[l + nblocks].im;
+ q->im = s->exptab[l + nblocks].re;
+ q++;
+ }
+ nblocks = nblocks >> 1;
+ } while (nblocks != 0);
+ av_freep(&s->exptab);
+ }
/* compute bit reverse table */