summaryrefslogtreecommitdiff
path: root/audio/xmms-wma/files/patch-ffmpeg-strip-wma::mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/xmms-wma/files/patch-ffmpeg-strip-wma::mem.c')
-rw-r--r--audio/xmms-wma/files/patch-ffmpeg-strip-wma::mem.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/audio/xmms-wma/files/patch-ffmpeg-strip-wma::mem.c b/audio/xmms-wma/files/patch-ffmpeg-strip-wma::mem.c
new file mode 100644
index 000000000000..a0b3a7962d31
--- /dev/null
+++ b/audio/xmms-wma/files/patch-ffmpeg-strip-wma::mem.c
@@ -0,0 +1,24 @@
+--- ffmpeg-strip-wma/mem.c Thu Mar 6 14:32:02 2003
++++ ffmpeg-strip-wma/mem.c Thu Mar 11 18:36:40 2004
+@@ -29,9 +29,9 @@
+ #undef free
+ #undef realloc
+
+-#ifdef HAVE_MALLOC_H
+-#include <malloc.h>
+-#endif
++#include <stdlib.h>
++
++#undef HAVE_MEMALIGN
+
+ /* you can redefine av_malloc and av_free in your project to use your
+ memory allocator. You do not need to suppress this file because the
+@@ -47,7 +47,7 @@
+ void *ptr;
+
+ #if defined (HAVE_MEMALIGN)
+- ptr = memalign(16,size);
++ ptr = memalign(16, size);
+ /* Why 64?
+ Indeed, we should align it:
+ on 4 for 386