Revision e2cd6686

View differences:

libavcodec/ac3dec.c
1348 1348
            for (i = 0; i < nfchans; i++)
1349 1349
                ctx->chincpl[i] = get_bits1(gb);
1350 1350

  
1351
            if (acmod == 0x02)
1351
            if (acmod == AC3_ACMOD_STEREO)
1352 1352
                ctx->phsflginu = get_bits1(gb); //phase flag in use
1353 1353

  
1354 1354
            ctx->cplbegf = get_bits(gb, 4);
......
1392 1392
                    }
1393 1393
                }
1394 1394

  
1395
        if (acmod == 0x02 && ctx->phsflginu && (ctx->cplcoe & 1 || ctx->cplcoe & 2))
1395
        if (acmod == AC3_ACMOD_STEREO && ctx->phsflginu && (ctx->cplcoe & 1 || ctx->cplcoe & 2))
1396 1396
            for (bnd = 0; bnd < ctx->ncplbnd; bnd++)
1397 1397
                if (get_bits1(gb))
1398 1398
                    ctx->cplco[1][bnd] = -ctx->cplco[1][bnd];
1399 1399
    }
1400 1400

  
1401
    if (acmod == 0x02) {/* rematrixing */
1401
    if (acmod == AC3_ACMOD_STEREO) {/* rematrixing */
1402 1402
        ctx->rematstr = get_bits1(gb);
1403 1403
        if (ctx->rematstr) {
1404 1404
            if (!(ctx->cplinu) || ctx->cplbegf > 2)

Also available in: Unified diff