Revision 68e6b099 libavcodec/ac3enc.c

View differences:

libavcodec/ac3enc.c
1035 1035
            if (block->exp_strategy[ch] == EXP_REUSE) {
1036 1036
                memcpy(block->bap[ch], s->blocks[blk-1].bap[ch], AC3_MAX_COEFS);
1037 1037
            } else {
1038
            ff_ac3_bit_alloc_calc_bap(block->mask[ch], block->psd[ch], 0,
1039
                                      s->nb_coefs[ch], snr_offset,
1040
                                      s->bit_alloc.floor, ff_ac3_bap_tab,
1041
                                      block->bap[ch]);
1038
                ff_ac3_bit_alloc_calc_bap(block->mask[ch], block->psd[ch], 0,
1039
                                          s->nb_coefs[ch], snr_offset,
1040
                                          s->bit_alloc.floor, ff_ac3_bap_tab,
1041
                                          block->bap[ch]);
1042 1042
            }
1043 1043
            mantissa_bits += compute_mantissa_size(mant_cnt, block->bap[ch], s->nb_coefs[ch]);
1044 1044
        }

Also available in: Unified diff