diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-09-27 06:38:57 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-09-27 06:38:57 +0000 |
commit | 3b6c5ad2f67cc8eeeec89fb9d497ec79c1f3948a (patch) | |
tree | 822ed84d3088e27b9ee78e4405f8e37a75ffc1f0 /libavcodec/ac3dec.c | |
parent | 025873738f365417870af9fb9ccd0a4da74564b7 (diff) | |
download | ffmpeg-3b6c5ad2f67cc8eeeec89fb9d497ec79c1f3948a.tar.gz |
Move variable declaration to inside of loop.
Originally committed as revision 20053 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r-- | libavcodec/ac3dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index cbeac311c3..efeb284b4a 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -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]) { |