mirror of
https://github.com/mpv-player/mpv
synced 2024-11-03 03:19:24 +01:00
although this SSE fix is an ugly hack it seems to work fine for me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12089 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
971bb1dd0f
commit
3076975c63
@ -57,6 +57,19 @@ sample_t * a52_init (uint32_t mm_accel)
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user