Revision 7cc4be58 libavcodec/ac3enc.c

View differences:

libavcodec/ac3enc.c
1757 1757
                          alloc_fail);
1758 1758

  
1759 1759
        for (ch = 0; ch < s->channels; ch++) {
1760
            /* arrangement: block, channel, coeff */
1760 1761
            block->bap[ch]         = &s->bap_buffer        [AC3_MAX_COEFS * (blk * s->channels + ch)];
1761 1762
            block->mdct_coef[ch]   = &s->mdct_coef_buffer  [AC3_MAX_COEFS * (blk * s->channels + ch)];
1762
            block->exp[ch]         = &s->exp_buffer        [AC3_MAX_COEFS * (blk * s->channels + ch)];
1763 1763
            block->grouped_exp[ch] = &s->grouped_exp_buffer[128           * (blk * s->channels + ch)];
1764 1764
            block->psd[ch]         = &s->psd_buffer        [AC3_MAX_COEFS * (blk * s->channels + ch)];
1765 1765
            block->band_psd[ch]    = &s->band_psd_buffer   [64            * (blk * s->channels + ch)];
1766 1766
            block->mask[ch]        = &s->mask_buffer       [64            * (blk * s->channels + ch)];
1767 1767
            block->qmant[ch]       = &s->qmant_buffer      [AC3_MAX_COEFS * (blk * s->channels + ch)];
1768

  
1769
            /* arrangement: channel, block, coeff */
1770
            block->exp[ch]         = &s->exp_buffer        [AC3_MAX_COEFS * (AC3_MAX_BLOCKS * ch + blk)];
1768 1771
        }
1769 1772
    }
1770 1773

  

Also available in: Unified diff