Commit d434cc4e authored by jbr's avatar jbr

Simplify coupling band loop.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20051 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e6578a18
...@@ -416,7 +416,8 @@ static void calc_transform_coeffs_cpl(AC3DecodeContext *s) ...@@ -416,7 +416,8 @@ static void calc_transform_coeffs_cpl(AC3DecodeContext *s)
i = s->start_freq[CPL_CH]; i = s->start_freq[CPL_CH];
for(bnd=0; bnd<s->num_cpl_bands; bnd++) { 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++) { for(ch=1; ch<=s->fbw_channels; ch++) {
if(s->channel_in_cpl[ch]) { if(s->channel_in_cpl[ch]) {
s->fixed_coeffs[ch][i] = ((int64_t)s->fixed_coeffs[CPL_CH][i] * s->fixed_coeffs[ch][i] = ((int64_t)s->fixed_coeffs[CPL_CH][i] *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment