diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:26:13 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:34:35 +0300 |
commit | 0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch) | |
tree | 71cb9bd9ed121156d3382066c0722c73189afe04 /mp3lib/test.c | |
parent | 6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff) | |
download | mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2 mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz |
Remove trailing whitespace from most files
Diffstat (limited to 'mp3lib/test.c')
-rw-r--r-- | mp3lib/test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mp3lib/test.c b/mp3lib/test.c index ea0169185b..5246ad3ff8 100644 --- a/mp3lib/test.c +++ b/mp3lib/test.c @@ -18,7 +18,7 @@ static inline unsigned int GetTimer(void){ gettimeofday(&tv,&tz); // s=tv.tv_usec;s*=0.000001;s+=tv.tv_sec; return (tv.tv_sec*1000000+tv.tv_usec); -} +} static FILE* mp3file=NULL; @@ -38,10 +38,10 @@ int main(int argc,char* argv[]){ FILE *f=NULL; f=fopen("test.pcm","wb"); #endif - + mp3file=fopen((argc>1)?argv[1]:"test.mp3","rb"); if(!mp3file){ printf("file not found\n"); exit(1); } - + GetCpuCaps(&gCpuCaps); // MPEG Audio: @@ -51,7 +51,7 @@ int main(int argc,char* argv[]){ MP3_Init(); #endif MP3_samplerate=MP3_channels=0; - + time1=GetTimer(); while((len=MP3_DecodeFrame(buffer,-1))>0 && total<2000000){ total+=len; @@ -66,7 +66,7 @@ int main(int argc,char* argv[]){ printf("\nDecoding time: %8.6f\n",(float)time1*0.000001f); printf("Uncompressed size: %d bytes (%8.3f secs)\n",total,length); printf("CPU usage at normal playback: %5.2f %%\n",time1*0.0001f/length); - + fclose(mp3file); return 0; } |