# HG changeset patch # User michael # Date 1156514307 0 # Node ID a6251ee2dfdb9d243e3b3a215b9dafcbdfc2ac15 # Parent 8042fcb3a62a4a6fb66a99f08ded0d36b94af55a move variable declarations so that their scope is smaller diff -r 8042fcb3a62a -r a6251ee2dfdb mpegaudiodec.c --- a/mpegaudiodec.c Fri Aug 25 13:46:56 2006 +0000 +++ b/mpegaudiodec.c Fri Aug 25 13:58:27 2006 +0000 @@ -1679,13 +1679,14 @@ int16_t *exponents, int end_pos) { int s_index; - int linbits, code, x, y, l, v, i, j, k, pos; + int i; int last_pos; VLC *vlc; /* low frequencies (called big values) */ s_index = 0; for(i=0;i<3;i++) { + int j, k, l, linbits; j = g->region_size[i]; if (j == 0) continue; @@ -1703,7 +1704,7 @@ /* read huffcode and compute each couple */ for(;j>0;j--) { - int exponent; + int exponent, x, y, v; if (get_bits_count(&s->gb) >= end_pos) break; @@ -1768,6 +1769,7 @@ vlc = &huff_quad_vlc[g->count1table_select]; last_pos=0; while (s_index <= 572) { + int pos, code; pos = get_bits_count(&s->gb); if (pos >= end_pos) { if (pos > end_pos && last_pos){ @@ -1789,6 +1791,7 @@ g->sb_hybrid[s_index+3]= 0; while(code){ const static int idxtab[16]={3,3,2,2,1,1,1,1,0,0,0,0,0,0,0,0}; + int v; int pos= s_index+idxtab[code]; code ^= 8>>idxtab[code]; v = exp_table[ exponents[pos] ];