# HG changeset patch # User jbr # Date 1186234237 0 # Node ID 11585a0218983356895384400c064ac8083858f5 # Parent 37c1944ca4eedef3c2fce46bdde094777e49510c move some variables to a more local scope. diff -r 37c1944ca4ee -r 11585a021898 ac3dec.c --- a/ac3dec.c Sat Aug 04 13:26:46 2007 +0000 +++ b/ac3dec.c Sat Aug 04 13:30:37 2007 +0000 @@ -700,8 +700,6 @@ int i, bnd, seg, ch; GetBitContext *gb = &ctx->gb; int bit_alloc_flags = 0; - int mstrcplco, cplcoexp, cplcomant; - int chbwcod, skipl; for (i = 0; i < nfchans; i++) /*block switch flag */ ctx->blksw[i] = get_bits1(gb); @@ -767,6 +765,7 @@ for (i = 0; i < nfchans; i++) { if (ctx->chincpl[i]) { if (get_bits1(gb)) { /* coupling co-ordinates */ + int mstrcplco, cplcoexp, cplcomant; cplcoe = 1; mstrcplco = 3 * get_bits(gb, 2); for (bnd = 0; bnd < ctx->ncplbnd; bnd++) { @@ -815,7 +814,7 @@ if (ctx->chincpl[i]) ctx->endmant[i] = ctx->cplstrtmant; else { - chbwcod = get_bits(gb, 6); + int chbwcod = get_bits(gb, 6); if (chbwcod > 60) { av_log(NULL, AV_LOG_ERROR, "chbwcod = %d > 60", chbwcod); return -1; @@ -964,7 +963,7 @@ } if (get_bits1(gb)) { /* unused dummy data */ - skipl = get_bits(gb, 9); + int skipl = get_bits(gb, 9); while(skipl--) skip_bits(gb, 8); }