Commit a39bd458 authored by Michael Niedermayer's avatar Michael Niedermayer

mem: Trying to workaround posix_memalign() bug on OSX

This patch is based on a patch by John Stebbins
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d58ed64a
......@@ -86,6 +86,7 @@ void *av_malloc(size_t size)
ptr = (char*)ptr + diff;
((char*)ptr)[-1]= diff;
#elif HAVE_POSIX_MEMALIGN
if (size) //OSX on SDK 10.6 has a broken posix_memalign implementation
if (posix_memalign(&ptr,ALIGN,size))
ptr = NULL;
#elif HAVE_MEMALIGN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment