You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
mem: Trying to workaround posix_memalign() bug on OSX
This patch is based on a patch by John Stebbins Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -86,6 +86,7 @@ void *av_malloc(size_t size)
|
|||||||
ptr = (char*)ptr + diff;
|
ptr = (char*)ptr + diff;
|
||||||
((char*)ptr)[-1]= diff;
|
((char*)ptr)[-1]= diff;
|
||||||
#elif HAVE_POSIX_MEMALIGN
|
#elif HAVE_POSIX_MEMALIGN
|
||||||
|
if (size) //OSX on SDK 10.6 has a broken posix_memalign implementation
|
||||||
if (posix_memalign(&ptr,ALIGN,size))
|
if (posix_memalign(&ptr,ALIGN,size))
|
||||||
ptr = NULL;
|
ptr = NULL;
|
||||||
#elif HAVE_MEMALIGN
|
#elif HAVE_MEMALIGN
|
||||||
|
Reference in New Issue
Block a user