diff options
Diffstat (limited to 'mp3lib/layer1.c')
-rw-r--r-- | mp3lib/layer1.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mp3lib/layer1.c b/mp3lib/layer1.c index 444dab9a4d..9a50b5df47 100644 --- a/mp3lib/layer1.c +++ b/mp3lib/layer1.c @@ -1,10 +1,10 @@ -/* - * Mpeg Layer-1 audio decoder +/* + * Mpeg Layer-1 audio decoder * -------------------------- * copyright (c) 1995 by Michael Hipp, All rights reserved. See also 'README' * near unoptimzed ... * - * may have a few bugs after last optimization ... + * may have a few bugs after last optimization ... * */ @@ -28,7 +28,7 @@ static void I_step_one(unsigned int balloc[], unsigned int scale_index[2][SBLIMI if(fr->stereo == 2) { int i; int jsbound = fr->jsbound; - for (i=0;i<jsbound;i++) { + for (i=0;i<jsbound;i++) { *ba++ = getbits(4); *ba++ = getbits(4); } @@ -80,7 +80,7 @@ static void I_step_two(real fraction[2][SBLIMIT],unsigned int balloc[2*SBLIMIT], if ((n = *ba++)) *sample++ = getbits(n+1); } - for (i=jsbound;i<SBLIMIT;i++) + for (i=jsbound;i<SBLIMIT;i++) if ((n = *ba++)) *sample++ = getbits(n+1); @@ -137,7 +137,7 @@ static int do_layer1(struct frame *fr,int single) // printf("do_layer1(0x%02X 0x%02X 0x%02X 0x%02X 0x%02X 0x%02X 0x%02X 0x%02X )\n", // wordpointer[0],wordpointer[1],wordpointer[2],wordpointer[3],wordpointer[4],wordpointer[5],wordpointer[6],wordpointer[7]); - fr->jsbound = (fr->mode == MPG_MD_JOINT_STEREO) ? + fr->jsbound = (fr->mode == MPG_MD_JOINT_STEREO) ? (fr->mode_ext<<2)+4 : 32; if(stereo == 1 || single == 3) |