Revision 5b54d4b3 libavcodec/ac3enc.c

View differences:

libavcodec/ac3enc.c
310 310

  
311 311
    nb_coefs = FFMIN(s->nb_coefs[0], s->nb_coefs[1]);
312 312

  
313
    s->blocks[0].new_rematrixing_strategy = 1;
314 313
    for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {
315 314
        block = &s->blocks[blk];
315
        block->new_rematrixing_strategy = !blk;
316 316
        for (bnd = 0; bnd < 4; bnd++) {
317 317
            /* calculate calculate sum of squared coeffs for one band in one block */
318 318
            int start = ff_ac3_rematrix_band_tab[bnd];
......
337 337

  
338 338
            /* determine if new rematrixing flags will be sent */
339 339
            if (blk &&
340
                !block->new_rematrixing_strategy &&
341 340
                block->rematrixing_flags[bnd] != block0->rematrixing_flags[bnd]) {
342 341
                block->new_rematrixing_strategy = 1;
343 342
            }

Also available in: Unified diff