Commit 402b725e authored by jbr's avatar jbr

move some variables to a more local scope.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9905 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cbd22727
...@@ -700,8 +700,6 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk) ...@@ -700,8 +700,6 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk)
int i, bnd, seg, ch; int i, bnd, seg, ch;
GetBitContext *gb = &ctx->gb; GetBitContext *gb = &ctx->gb;
int bit_alloc_flags = 0; int bit_alloc_flags = 0;
int mstrcplco, cplcoexp, cplcomant;
int chbwcod, skipl;
for (i = 0; i < nfchans; i++) /*block switch flag */ for (i = 0; i < nfchans; i++) /*block switch flag */
ctx->blksw[i] = get_bits1(gb); ctx->blksw[i] = get_bits1(gb);
...@@ -767,6 +765,7 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk) ...@@ -767,6 +765,7 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk)
for (i = 0; i < nfchans; i++) { for (i = 0; i < nfchans; i++) {
if (ctx->chincpl[i]) { if (ctx->chincpl[i]) {
if (get_bits1(gb)) { /* coupling co-ordinates */ if (get_bits1(gb)) { /* coupling co-ordinates */
int mstrcplco, cplcoexp, cplcomant;
cplcoe = 1; cplcoe = 1;
mstrcplco = 3 * get_bits(gb, 2); mstrcplco = 3 * get_bits(gb, 2);
for (bnd = 0; bnd < ctx->ncplbnd; bnd++) { for (bnd = 0; bnd < ctx->ncplbnd; bnd++) {
...@@ -815,7 +814,7 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk) ...@@ -815,7 +814,7 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk)
if (ctx->chincpl[i]) if (ctx->chincpl[i])
ctx->endmant[i] = ctx->cplstrtmant; ctx->endmant[i] = ctx->cplstrtmant;
else { else {
chbwcod = get_bits(gb, 6); int chbwcod = get_bits(gb, 6);
if (chbwcod > 60) { if (chbwcod > 60) {
av_log(NULL, AV_LOG_ERROR, "chbwcod = %d > 60", chbwcod); av_log(NULL, AV_LOG_ERROR, "chbwcod = %d > 60", chbwcod);
return -1; return -1;
...@@ -964,7 +963,7 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk) ...@@ -964,7 +963,7 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk)
} }
if (get_bits1(gb)) { /* unused dummy data */ if (get_bits1(gb)) { /* unused dummy data */
skipl = get_bits(gb, 9); int skipl = get_bits(gb, 9);
while(skipl--) while(skipl--)
skip_bits(gb, 8); skip_bits(gb, 8);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment