1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-06-04 05:57:49 +02:00

K&R coding style whitespace cosmetics

Originally committed as revision 19929 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Diego Biurrun 2009-09-20 17:16:12 +00:00
parent 7a38c1149c
commit 1e1898c00f

View File

@ -111,7 +111,7 @@ static void at1_imdct(AT1Ctx *q, float *spec, float *out, int nbits,
static int at1_imdct_block(AT1SUCtx* su, AT1Ctx *q) static int at1_imdct_block(AT1SUCtx* su, AT1Ctx *q)
{ {
int band_num, band_samples, log2_block_count, nbits, num_blocks, block_size; int band_num, band_samples, log2_block_count, nbits, num_blocks, block_size;
unsigned int start_pos, ref_pos=0, pos = 0; unsigned int start_pos, ref_pos = 0 pos = 0;
for (band_num = 0; band_num < AT1_QMF_BANDS; band_num++) { for (band_num = 0; band_num < AT1_QMF_BANDS; band_num++) {
band_samples = samples_per_band[band_num]; band_samples = samples_per_band[band_num];
@ -140,7 +140,6 @@ static int at1_imdct_block(AT1SUCtx* su, AT1Ctx *q)
q->dsp.vector_fmul_window(q->bands[band_num], &su->spectrum[1][ref_pos + band_samples - 16], q->dsp.vector_fmul_window(q->bands[band_num], &su->spectrum[1][ref_pos + band_samples - 16],
&su->spectrum[0][ref_pos], short_window, 0, 16); &su->spectrum[0][ref_pos], short_window, 0, 16);
memcpy(q->bands[band_num] + 32, &su->spectrum[0][ref_pos + 16], 240 * sizeof(float)); memcpy(q->bands[band_num] + 32, &su->spectrum[0][ref_pos + 16], 240 * sizeof(float));
} else { } else {
/* short blocks */ /* short blocks */
float *prev_buf; float *prev_buf;
@ -318,9 +317,11 @@ static int atrac1_decode_frame(AVCodecContext *avctx, void *data,
} else { } else {
/* stereo */ /* stereo */
for (i = 0; i < AT1_SU_SAMPLES; i++) { for (i = 0; i < AT1_SU_SAMPLES; i++) {
samples[i*2] = av_clipf(q->out_samples[0][i], -32700.0 / (1<<15), samples[i * 2] = av_clipf(q->out_samples[0][i],
-32700.0 / (1 << 15),
32700.0 / (1 << 15)); 32700.0 / (1 << 15));
samples[i*2+1] = av_clipf(q->out_samples[1][i], -32700.0 / (1<<15), samples[i * 2 + 1] = av_clipf(q->out_samples[1][i],
-32700.0 / (1 << 15),
32700.0 / (1 << 15)); 32700.0 / (1 << 15));
} }
} }