Commit 02587373 authored by Justin Ruggles's avatar Justin Ruggles

Cosmetics: Rename some variables.

Originally committed as revision 20052 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b5f4639b
...@@ -412,18 +412,18 @@ static int decode_exponents(GetBitContext *gbc, int exp_strategy, int ngrps, ...@@ -412,18 +412,18 @@ static int decode_exponents(GetBitContext *gbc, int exp_strategy, int ngrps,
*/ */
static void calc_transform_coeffs_cpl(AC3DecodeContext *s) static void calc_transform_coeffs_cpl(AC3DecodeContext *s)
{ {
int i, j, ch, bnd; int bin, band, ch, band_end;
i = s->start_freq[CPL_CH]; bin = s->start_freq[CPL_CH];
for(bnd=0; bnd<s->num_cpl_bands; bnd++) { for (band = 0; band < s->num_cpl_bands; band++) {
j = i + s->cpl_band_sizes[bnd]; band_end = bin + s->cpl_band_sizes[band];
for (; i < j; i++) { for (; bin < band_end; bin++) {
for(ch=1; ch<=s->fbw_channels; ch++) { for (ch = 1; ch <= s->fbw_channels; ch++) {
if(s->channel_in_cpl[ch]) { if (s->channel_in_cpl[ch]) {
s->fixed_coeffs[ch][i] = ((int64_t)s->fixed_coeffs[CPL_CH][i] * s->fixed_coeffs[ch][bin] = ((int64_t)s->fixed_coeffs[CPL_CH][bin] *
(int64_t)s->cpl_coords[ch][bnd]) >> 23; (int64_t)s->cpl_coords[ch][band]) >> 23;
if (ch == 2 && s->phase_flags[bnd]) if (ch == 2 && s->phase_flags[band])
s->fixed_coeffs[ch][i] = -s->fixed_coeffs[ch][i]; s->fixed_coeffs[ch][bin] = -s->fixed_coeffs[ch][bin];
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment