Mercurial > mplayer.hg
changeset 1045:2ee9a18ed6f3
Minor improvements
author | nickols_k |
---|---|
date | Thu, 07 Jun 2001 09:08:32 +0000 |
parents | 0ed3fa262ec6 |
children | 59fc1f75e486 |
files | mp3lib/fastmemcpy.h mp3lib/sr1.c mp3lib/tabinit.c |
diffstat | 3 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mp3lib/fastmemcpy.h Thu Jun 07 09:08:32 2001 +0000 @@ -0,0 +1,1 @@ +#include "../libvo/fastmemcpy.h" \ No newline at end of file
--- a/mp3lib/sr1.c Wed Jun 06 22:27:25 2001 +0000 +++ b/mp3lib/sr1.c Thu Jun 07 09:08:32 2001 +0000 @@ -27,6 +27,7 @@ #include "bswap.h" #include "d_cpu.h" +#include "fastmemcpy.h" //static FILE* mp3_file=NULL; int MP3_frames=0; @@ -177,7 +178,7 @@ // head_check: if( (newhead & 0xffe00000) != 0xffe00000 || - (newhead & 0x0000f300) == 0x0000f300) return FALSE; + (newhead & 0x0000fc00) == 0x0000fc00) return FALSE; fr->lay = 4-((newhead>>17)&3); // if(fr->lay!=3) return FALSE;
--- a/mp3lib/tabinit.c Wed Jun 06 22:27:25 2001 +0000 +++ b/mp3lib/tabinit.c Thu Jun 07 09:08:32 2001 +0000 @@ -1,8 +1,12 @@ #ifdef HAVE_3DNOW - real decwin[2*(512+32)]; - real cos64[32],cos32[16],cos16[8],cos8[4],cos4[2]; + real decwin[2*(512+32)] __attribute__((aligned(8))); + real cos64[32] __attribute__((aligned(8))); + real cos32[16] __attribute__((aligned(8))); + real cos16[8] __attribute__((aligned(8))); + real cos8[4] __attribute__((aligned(8))); + real cos4[2] __attribute__((aligned(8))); real *pnts[]={ cos64,cos32,cos16,cos8,cos4 }; #else real decwin[512+32]; @@ -10,7 +14,7 @@ real *pnts[] = { cos64,cos32,cos16,cos8,cos4 }; #endif - long intwinbase[] = { +long intwinbase[] = { 0, -1, -1, -1, -1, -1, -1, -2, -2, -2, -2, -3, -3, -4, -4, -5, -5, -6, -7, -7, -8, -9, -10, -11, -13, -14, -16, -17, -19, -21,