[MPlayer-users] Re: intel os x crash using window codecs

Dave Chand devchan1 at bellsouth.net
Wed Dec 6 21:58:42 CET 2006


On Dec 2, 2006, at 6:32 PM, Martin Simmons wrote:


> Looks like a stack alignment problem to me -- the Intel Mac calling  
> convention
> requires 16 byte alignment of the stack before the call, which  
> won't be
> happening when a Win32 DLL makes calls to functions in loader/win32.c.
>
I googled and found this:
h t t p://w w w.dribin.org/dave/blog/archives/2006/12/05/ 
missing_third_param/

and I came up with the following:

Index: loader/Makefile
===================================================================
--- loader/Makefile     (revision 21522)
+++ loader/Makefile     (working copy)
@@ -2,7 +2,8 @@
LIBNAME = libloader.a
-CFLAGS= -Idshow -DMPLAYER -D__WINE__ -DNOAVIFILE_HEADERS
+CFLAGS= -Idshow -DMPLAYER -D__WINE__ -DNOAVIFILE_HEADERS - 
mstackrealign -fno-unit-at-a-time
+
#CFLAGS+=-Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT
SRCS= driver.c afl.c vfl.c


References:
h t t p://w w w.dribin.org/dave/blog/archives/2006/12/05/ 
missing_third_param/

dc




More information about the MPlayer-users mailing list