[FFmpeg-devel] [PATCH] use macho32 object format in 32-bits arch

Guillaume Poirier gpoirier
Mon Dec 1 18:24:06 CET 2008

Hello folks,

The attached patch should fix crashes that some users of libavcodec
experienced (MPlayer users if you want me to do some finger-pointing).

The problem comes from the fact that the code considers that "-f macho"
is the 32-bits flavor, and that "-f macho64" should be used to get the
64-bits flavor.

"yasm -f macho" leads to the generation of a 32-bits Mach-O object on a
32-bits machine, and a 64-bit Mach-O object on a 64-bits machine.

Attached patch should fix this (I must admit I didn't test it yet), but
it's not meant to be applied since it leads to code duplication as I'm
not comfortable with yasm.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: macho32.diff
Type: text/x-patch
Size: 1804 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081201/9c1ce3db/attachment.bin>

More information about the ffmpeg-devel mailing list