diff options
author | Fabrizio Gennari <fabrizio.ge@tiscali.it> | 2013-03-10 10:22:45 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-10 11:12:56 +0100 |
commit | 91b747ac78218805a79435f50587f87167569dad (patch) | |
tree | 1e8f583c716f0b5f98cafc1c447a78ad98d2de1a | |
parent | 969e8d35b5b4c457b33df524ca95cd548a404599 (diff) | |
download | ffmpeg-91b747ac78218805a79435f50587f87167569dad.tar.gz |
mem: Fix usage of memalign() on DJGPP.
Credits to Khusraw of bttr-software.de forum.
Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
-rw-r--r-- | libavutil/mem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/mem.c b/libavutil/mem.c index a7fe60837b..860c0111eb 100644 --- a/libavutil/mem.c +++ b/libavutil/mem.c @@ -95,7 +95,11 @@ void *av_malloc(size_t size) #elif HAVE_ALIGNED_MALLOC ptr = _aligned_malloc(size, ALIGN); #elif HAVE_MEMALIGN +#ifndef __DJGPP__ ptr = memalign(ALIGN, size); +#else + ptr = memalign(size, ALIGN); +#endif /* Why 64? * Indeed, we should align it: * on 4 for 386 |