# HG changeset patch # User jbr # Date 1186228510 0 # Node ID 669395a6bca81dabfcbede038c17e55456f39b5e # Parent 4f010d49bee1073b89a249f8054b92c0155f97d6 change AC3DecodeContext variable to local variable diff -r 4f010d49bee1 -r 669395a6bca8 ac3dec.c --- a/ac3dec.c Sat Aug 04 11:39:47 2007 +0000 +++ b/ac3dec.c Sat Aug 04 11:55:10 2007 +0000 @@ -99,7 +99,6 @@ int cplinu; int chincpl[AC3_MAX_CHANNELS]; int phsflginu; - int cplcoe; int cplbndstrc[18]; int rematstr; int nrematbnd; @@ -762,12 +761,12 @@ } if (ctx->cplinu) { - ctx->cplcoe = 0; + int cplcoe = 0; for (i = 0; i < nfchans; i++) if (ctx->chincpl[i]) if (get_bits1(gb)) { /* coupling co-ordinates */ - ctx->cplcoe |= 1 << i; + cplcoe = 1; mstrcplco = 3 * get_bits(gb, 2); for (bnd = 0; bnd < ctx->ncplbnd; bnd++) { cplcoexp = get_bits(gb, 4); @@ -780,7 +779,7 @@ } } - if (acmod == AC3_ACMOD_STEREO && ctx->phsflginu && (ctx->cplcoe & 1 || ctx->cplcoe & 2)) + if (acmod == AC3_ACMOD_STEREO && ctx->phsflginu && cplcoe) for (bnd = 0; bnd < ctx->ncplbnd; bnd++) if (get_bits1(gb)) ctx->cplco[1][bnd] = -ctx->cplco[1][bnd];