dct: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
Aneesh Dogra 2012-01-01 22:16:37 +05:30 committed by Diego Biurrun
parent 212fd3a1f1
commit 2e70b2de58
1 changed files with 60 additions and 60 deletions

View File

@ -28,6 +28,7 @@
*/
#include <math.h>
#include "libavutil/mathematics.h"
#include "dct.h"
#include "dct32.h"
@ -161,7 +162,6 @@ static void ff_dct_calc_II_c(DCTContext *ctx, FFTSample *data)
float s = SIN(ctx, n, i);
data[i] = c * inr + s * ini;
data[i + 1] = next;
next += s * inr - c * ini;
@ -189,7 +189,6 @@ av_cold int ff_dct_init(DCTContext *s, int nbits, enum DCTTransformType inverse)
ff_init_ff_cos_tabs(nbits + 2);
s->costab = ff_cos_tabs[nbits + 2];
s->csc2 = av_malloc(n / 2 * sizeof(FFTSample));
if (ff_rdft_init(&s->rdft, nbits, inverse == DCT_III) < 0) {
@ -209,7 +208,8 @@ av_cold int ff_dct_init(DCTContext *s, int nbits, enum DCTTransformType inverse)
}
s->dct32 = ff_dct32_float;
if (HAVE_MMX) ff_dct_init_mmx(s);
if (HAVE_MMX)
ff_dct_init_mmx(s);
return 0;
}