diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-09-27 06:33:23 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-09-27 06:33:23 +0000 |
commit | b5f4639b1396059afdc1d9fd0d11bff8aba4eda1 (patch) | |
tree | c67b1478bc7b6ad55926b7e3605dac97909133f4 /libavcodec | |
parent | 09e03847b945ab31469ea428349aa4d589544019 (diff) | |
download | ffmpeg-streaming-b5f4639b1396059afdc1d9fd0d11bff8aba4eda1.zip ffmpeg-streaming-b5f4639b1396059afdc1d9fd0d11bff8aba4eda1.tar.gz |
Simplify coupling band loop.
Originally committed as revision 20051 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ac3dec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index f2cadf0..883aa7f 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -416,7 +416,8 @@ static void calc_transform_coeffs_cpl(AC3DecodeContext *s) i = s->start_freq[CPL_CH]; for(bnd=0; bnd<s->num_cpl_bands; bnd++) { - for (j = 0; j < s->cpl_band_sizes[bnd]; j++,i++) { + j = i + s->cpl_band_sizes[bnd]; + for (; i < j; i++) { for(ch=1; ch<=s->fbw_channels; ch++) { if(s->channel_in_cpl[ch]) { s->fixed_coeffs[ch][i] = ((int64_t)s->fixed_coeffs[CPL_CH][i] * |