# HG changeset patch # User jbr # Date 1254033537 0 # Node ID 916c2b7ecd0220be4637a960c760f0a1c705ffbd # Parent a8514d4fa525deaf398e6e39b64d1beb3dc3f782 Move variable declaration to inside of loop. diff -r a8514d4fa525 -r 916c2b7ecd02 ac3dec.c --- a/ac3dec.c Sun Sep 27 06:38:13 2009 +0000 +++ b/ac3dec.c Sun Sep 27 06:38:57 2009 +0000 @@ -412,11 +412,11 @@ */ 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]) {