[MPlayer-dev-eng] memalign usage within mplayer
zuxy.meng at gmail.com
Thu Mar 4 08:12:00 CET 2010
2010/3/3 compn <tempn at twmi.rr.com>:
> On Wed, 3 Mar 2010 16:03:59 +0800, Zuxy Meng wrote:
>>My personal build used to work perfectly on Windows but now is plauged
>>with Seg fault due to misaligned access with SSE code. After spending
>>dozens of minutes I found the root cause is mp_image.c uses memalign()
>>in mp_image_alloc_planes(), which has been defined to malloc() when
>>not present, and the pointer passes down to put_pixels16_sse2 somehow
>>via several functions like get_buffer() etc.
>>I wonder if some recent change has lead to this problem (did we use
>>av_malloc() and av_free() before?) or my builds just happened to work.
>>If the latter is true, is it reasonable to use av_malloc() and
>>av_free() for malloc() and free() across the project under such
> previously sse was disabled on mingw, also there was a memalign-hack
> option too i think? both were removed after gcc4 came out.
These changes were long ago, while my build failed only recently.
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
More information about the MPlayer-dev-eng