diff options
author | Mans Rullgard <mans@mansr.com> | 2011-05-16 15:57:36 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-05-16 16:20:27 +0100 |
commit | 9503fbb859d859fada35c966af8d4765a8b819fa (patch) | |
tree | 9cb3cc440bd16b7bb6812fe66d3f69cbccb8ecfe /libavcodec | |
parent | 721d6f2dc5437df21ae17923b29fa2be847764c7 (diff) | |
download | ffmpeg-9503fbb859d859fada35c966af8d4765a8b819fa.tar.gz |
dct: fix indentation
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dct.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/libavcodec/dct.c b/libavcodec/dct.c index e7a8f227b7..caa6bdb4b4 100644 --- a/libavcodec/dct.c +++ b/libavcodec/dct.c @@ -188,26 +188,26 @@ av_cold int ff_dct_init(DCTContext *s, int nbits, enum DCTTransformType inverse) if (inverse == DCT_II && nbits == 5) { s->dct_calc = dct32_func; } else { - ff_init_ff_cos_tabs(nbits+2); + ff_init_ff_cos_tabs(nbits+2); - s->costab = ff_cos_tabs[nbits+2]; + s->costab = ff_cos_tabs[nbits+2]; - s->csc2 = av_malloc(n/2 * sizeof(FFTSample)); + s->csc2 = av_malloc(n/2 * sizeof(FFTSample)); - if (ff_rdft_init(&s->rdft, nbits, inverse == DCT_III) < 0) { - av_free(s->csc2); - return -1; - } + if (ff_rdft_init(&s->rdft, nbits, inverse == DCT_III) < 0) { + av_free(s->csc2); + return -1; + } - for (i = 0; i < n/2; i++) - s->csc2[i] = 0.5 / sin((M_PI / (2*n) * (2*i + 1))); + for (i = 0; i < n/2; i++) + s->csc2[i] = 0.5 / sin((M_PI / (2*n) * (2*i + 1))); - switch(inverse) { - case DCT_I : s->dct_calc = ff_dct_calc_I_c; break; - case DCT_II : s->dct_calc = ff_dct_calc_II_c ; break; - case DCT_III: s->dct_calc = ff_dct_calc_III_c; break; - case DST_I : s->dct_calc = ff_dst_calc_I_c; break; - } + switch(inverse) { + case DCT_I : s->dct_calc = ff_dct_calc_I_c; break; + case DCT_II : s->dct_calc = ff_dct_calc_II_c ; break; + case DCT_III: s->dct_calc = ff_dct_calc_III_c; break; + case DST_I : s->dct_calc = ff_dst_calc_I_c; break; + } } s->dct32 = dct32; |