Mercurial > libavcodec.hg
changeset 10293:261af05be0b5 libavcodec
Simplify coupling band loop.
author | jbr |
---|---|
date | Sun, 27 Sep 2009 06:33:23 +0000 |
parents | 01e6afd0aba6 |
children | a8514d4fa525 |
files | ac3dec.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ac3dec.c Sun Sep 27 06:16:49 2009 +0000 +++ b/ac3dec.c Sun Sep 27 06:33:23 2009 +0000 @@ -416,7 +416,8 @@ 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] *