Browse Source

Move variable declaration to inside of loop.

Originally committed as revision 20053 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Justin Ruggles 15 years ago
parent
commit
3b6c5ad2f6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/ac3dec.c

+ 2
- 2
libavcodec/ac3dec.c View File

@@ -412,11 +412,11 @@ static int decode_exponents(GetBitContext *gbc, int exp_strategy, int ngrps,
*/
static void calc_transform_coeffs_cpl(AC3DecodeContext *s)
{
int bin, band, ch, band_end;
int bin, band, ch;

bin = s->start_freq[CPL_CH];
for (band = 0; band < s->num_cpl_bands; band++) {
band_end = bin + s->cpl_band_sizes[band];
int band_end = bin + s->cpl_band_sizes[band];
for (; bin < band_end; bin++) {
for (ch = 1; ch <= s->fbw_channels; ch++) {
if (s->channel_in_cpl[ch]) {


Loading…
Cancel
Save