diff options
-rw-r--r-- | libavutil/mem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/mem.c b/libavutil/mem.c index 29ecbfa055..87c2008a27 100644 --- a/libavutil/mem.c +++ b/libavutil/mem.c @@ -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 |