aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2007-08-04 13:30:37 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2007-08-04 13:30:37 +0000
commit8e2eb3b67496d361bfee6bf7eeb23786e764ebed (patch)
tree21e8a3f716452dcd58ca89a3b15bd8e7c224fe41 /libavcodec
parent0bff58a59a3eb06786d4986b0cf493ab02b0b2c3 (diff)
downloadffmpeg-8e2eb3b67496d361bfee6bf7eeb23786e764ebed.tar.gz
move some variables to a more local scope.
Originally committed as revision 9905 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ac3dec.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index e5639fb185..6c0aba3eea 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -700,8 +700,6 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk)
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 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk)
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 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk)
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 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk)
}
if (get_bits1(gb)) { /* unused dummy data */
- skipl = get_bits(gb, 9);
+ int skipl = get_bits(gb, 9);
while(skipl--)
skip_bits(gb, 8);
}