Revision 67fc32ac libavcodec/ac3enc.c

View differences:

libavcodec/ac3enc.c
328 328
                CoefType rt = block->mdct_coef[1][i];
329 329
                CoefType md = lt + rt;
330 330
                CoefType sd = lt - rt;
331
                sum[0] += lt * lt;
332
                sum[1] += rt * rt;
333
                sum[2] += md * md;
334
                sum[3] += sd * sd;
331
                sum[0] += MUL_COEF(lt, lt);
332
                sum[1] += MUL_COEF(rt, rt);
333
                sum[2] += MUL_COEF(md, md);
334
                sum[3] += MUL_COEF(sd, sd);
335 335
            }
336 336

  
337 337
            /* compare sums to determine if rematrixing will be used for this band */

Also available in: Unified diff