diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-05-13 02:58:57 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-05-13 02:58:57 +0000 |
commit | 6e9cbdc10448203e7c8b2de41447442fcc9f7bae (patch) | |
tree | 0ed465592509105fdbeab27fc12ddbb2e3590aa5 /mp3lib/layer2.c | |
parent | eafe5b7517bbf408ae1ffc936a3abe2313c3b334 (diff) | |
download | mpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.bz2 mpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.xz |
whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib/layer2.c')
-rw-r--r-- | mp3lib/layer2.c | 36 |
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) { |