Revision 0db5d2b0

View differences:

libavcodec/ac3enc.c
611 611
            blk1 = blk + 1;
612 612

  
613 613
            /* count the number of EXP_REUSE blocks after the current block */
614
            while (blk1 < AC3_MAX_BLOCKS && exp_strategy[blk1] == EXP_REUSE) {
614
            while (blk1 < AC3_MAX_BLOCKS && exp_strategy[blk1] == EXP_REUSE)
615 615
                blk1++;
616
            }
617 616
            num_reuse_blocks = blk1 - blk - 1;
618 617

  
619 618
            /* for the EXP_REUSE case we select the min of the exponents */
620 619
            exponent_min(exp, num_reuse_blocks, nb_coefs);
621 620

  
622
            encode_exponents_blk_ch(exp, nb_coefs,
623
                                    exp_strategy[blk]);
621
            encode_exponents_blk_ch(exp, nb_coefs, exp_strategy[blk]);
622

  
624 623
            /* copy encoded exponents for reuse case */
625 624
            exp1 = exp + AC3_MAX_COEFS;
626 625
            while (blk < blk1-1) {

Also available in: Unified diff