Revision 16c91d2b

View differences:

libavcodec/ac3dec.c
608 608

  
609 609
    end = FFMIN(s->end_freq[1], s->end_freq[2]);
610 610

  
611
    i = ff_ac3_rematrix_band_tab[0];
611 612
    for(bnd=0; bnd<s->num_rematrixing_bands; bnd++) {
612 613
        if(s->rematrixing_flags[bnd]) {
613 614
            bndend = FFMIN(end, ff_ac3_rematrix_band_tab[bnd+1]);
614
            for(i=ff_ac3_rematrix_band_tab[bnd]; i<bndend; i++) {
615
            for(; i<bndend; i++) {
615 616
                tmp0 = s->fixed_coeffs[1][i];
616 617
                tmp1 = s->fixed_coeffs[2][i];
617 618
                s->fixed_coeffs[1][i] = tmp0 + tmp1;

Also available in: Unified diff