# HG changeset patch # User faust3 # Date 1080815730 0 # Node ID f52e662bf3653e33a33c641de3ba1d8a680ce455 # Parent 296582b196116b3a5678b33771be1c9d230b745d although this SSE fix is an ugly hack it seems to work fine for me diff -r 296582b19611 -r f52e662bf365 liba52/parse.c --- a/liba52/parse.c Thu Apr 01 10:19:57 2004 +0000 +++ b/liba52/parse.c Thu Apr 01 10:35:30 2004 +0000 @@ -57,6 +57,19 @@ downmix_accel_init(mm_accel); samples = memalign (16, 256 * 12 * sizeof (sample_t)); +#if defined(__MINGW32__) && defined(HAVE_SSE) + for(i=0;i<10;i++){ + if((int)samples%16){ + sample_t* samplestmp=malloc(256 * 12 * sizeof (sample_t)); + free(samples); + samples = samplestmp; + } + else break; + } + if((int)samples%16){ + printf("unable to get 16 bit aligned memory => expect crashes when using SSE instructions\n"); + } +#endif if (samples == NULL) return NULL;