summaryrefslogtreecommitdiffstats
path: root/mp3lib/layer2.c
diff options
context:
space:
mode:
Diffstat (limited to 'mp3lib/layer2.c')
-rw-r--r--mp3lib/layer2.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/mp3lib/layer2.c b/mp3lib/layer2.c
index a1d3fa43fe..f2c134c827 100644
--- a/mp3lib/layer2.c
+++ b/mp3lib/layer2.c
@@ -4,8 +4,8 @@
* $Id$
*/
-/*
- * Mpeg Layer-2 audio decoder
+/*
+ * Mpeg Layer-2 audio decoder
* --------------------------
* copyright (c) 1995 by Michael Hipp, All rights reserved. See also 'README'
*
@@ -56,7 +56,7 @@ static void init_layer2(void)
{
double m=mulmul[k];
table = muls[k];
- if(_has_mmx)
+ if(_has_mmx)
{
for(j=3,i=0;i<63;i++,j--)
*table++ = 16384 * m * pow(2.0,(double) j / 3.0);
@@ -116,21 +116,21 @@ static void II_step_one(unsigned int *bit_alloc,int *scale,struct frame *fr)
bita = bit_alloc;
scfsi=scfsi_buf;
- for (i=sblimit2;i>0;i--)
+ for (i=sblimit2;i>0;i--)
if (*bita++)
- switch (*scfsi++)
+ switch (*scfsi++)
{
- case 0:
+ case 0:
*scale++ = getbits_fast(6);
*scale++ = getbits_fast(6);
*scale++ = getbits_fast(6);
break;
- case 1 :
+ case 1 :
*scale++ = sc = getbits_fast(6);
*scale++ = sc;
*scale++ = getbits_fast(6);
break;
- case 2:
+ case 2:
*scale++ = sc = getbits_fast(6);
*scale++ = sc;
*scale++ = sc;
@@ -159,17 +159,17 @@ static void II_step_two(unsigned int *bit_alloc,real fraction[2][4][SBLIMIT],int
step = alloc1->bits;
for (j=0;j<stereo;j++)
{
- if ( (ba=*bita++) )
+ if ( (ba=*bita++) )
{
k=(alloc2 = alloc1+ba)->bits;
- if( (d1=alloc2->d) < 0)
+ if( (d1=alloc2->d) < 0)
{
real cm=muls[k][scale[x1]];
fraction[j][0][i] = ((real) ((int)getbits(k) + d1)) * cm;
fraction[j][1][i] = ((real) ((int)getbits(k) + d1)) * cm;
fraction[j][2][i] = ((real) ((int)getbits(k) + d1)) * cm;
- }
- else
+ }
+ else
{
static int *table[] = { 0,0,0,grp_3tab,0,grp_5tab,0,0,0,grp_9tab };
unsigned int idx,*tab,m=scale[x1];
@@ -177,7 +177,7 @@ static void II_step_two(unsigned int *bit_alloc,real fraction[2][4][SBLIMIT],int
tab = (unsigned int *) (table[d1] + idx + idx + idx);
fraction[j][0][i] = muls[*tab++][m];
fraction[j][1][i] = muls[*tab++][m];
- fraction[j][2][i] = muls[*tab][m];
+ fraction[j][2][i] = muls[*tab][m];
}
scale+=3;
}
@@ -220,13 +220,13 @@ static void II_step_two(unsigned int *bit_alloc,real fraction[2][4][SBLIMIT],int
fraction[0][0][i] = fraction[0][1][i] = fraction[0][2][i] =
fraction[1][0][i] = fraction[1][1][i] = fraction[1][2][i] = 0.0;
}
-/*
+/*
should we use individual scalefac for channel 2 or
is the current way the right one , where we just copy channel 1 to
- channel 2 ??
+ channel 2 ??
The current 'strange' thing is, that we throw away the scalefac
values for the second channel ...!!
--> changed .. now we use the scalefac values of channel one !!
+-> changed .. now we use the scalefac values of channel one !!
*/
}
@@ -299,10 +299,10 @@ static int do_layer2(struct frame *fr,int outmode)
II_step_one(bit_alloc, scale, fr);
- for (i=0;i<SCALE_BLOCK;i++)
+ for (i=0;i<SCALE_BLOCK;i++)
{
II_step_two(bit_alloc,fraction,scale,fr,i>>2);
- for (j=0;j<3;j++)
+ for (j=0;j<3;j++)
{
if(single >= 0)
{