Mercurial > libavcodec.hg
comparison ac3dec.c @ 10295:916c2b7ecd02 libavcodec
Move variable declaration to inside of loop.
author | jbr |
---|---|
date | Sun, 27 Sep 2009 06:38:57 +0000 |
parents | a8514d4fa525 |
children | 12d40dab6d80 |
comparison
equal
deleted
inserted
replaced
10294:a8514d4fa525 | 10295:916c2b7ecd02 |
---|---|
410 * range using the coupling coefficients and coupling coordinates. | 410 * range using the coupling coefficients and coupling coordinates. |
411 * reference: Section 7.4.3 Coupling Coordinate Format | 411 * reference: Section 7.4.3 Coupling Coordinate Format |
412 */ | 412 */ |
413 static void calc_transform_coeffs_cpl(AC3DecodeContext *s) | 413 static void calc_transform_coeffs_cpl(AC3DecodeContext *s) |
414 { | 414 { |
415 int bin, band, ch, band_end; | 415 int bin, band, ch; |
416 | 416 |
417 bin = s->start_freq[CPL_CH]; | 417 bin = s->start_freq[CPL_CH]; |
418 for (band = 0; band < s->num_cpl_bands; band++) { | 418 for (band = 0; band < s->num_cpl_bands; band++) { |
419 band_end = bin + s->cpl_band_sizes[band]; | 419 int band_end = bin + s->cpl_band_sizes[band]; |
420 for (; bin < band_end; bin++) { | 420 for (; bin < band_end; bin++) { |
421 for (ch = 1; ch <= s->fbw_channels; ch++) { | 421 for (ch = 1; ch <= s->fbw_channels; ch++) { |
422 if (s->channel_in_cpl[ch]) { | 422 if (s->channel_in_cpl[ch]) { |
423 s->fixed_coeffs[ch][bin] = ((int64_t)s->fixed_coeffs[CPL_CH][bin] * | 423 s->fixed_coeffs[ch][bin] = ((int64_t)s->fixed_coeffs[CPL_CH][bin] * |
424 (int64_t)s->cpl_coords[ch][band]) >> 23; | 424 (int64_t)s->cpl_coords[ch][band]) >> 23; |