Mercurial > libavcodec.hg
changeset 10295:916c2b7ecd02 libavcodec
Move variable declaration to inside of loop.
author | jbr |
---|---|
date | Sun, 27 Sep 2009 06:38:57 +0000 |
parents | a8514d4fa525 |
children | a919d9583abd |
files | ac3dec.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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]) {