[MPlayer-dev-eng] [CRASH] mpi->planes[0] needs to be aligned at least to 16 byte or put_pixels16_sse2 will crash

Uoti Urpala uoti.urpala at pp1.inet.fi
Wed Mar 17 08:02:23 CET 2010


On Wed, 2010-03-17 at 13:46 +0800, Zuxy Meng wrote:
> I mentioned this in another thread several days ago. To fix it once
> and for all we'd substitute all call to malloc/memalign and free to
> av_malloc and av_free across mplayer, but I can't think of a graceful
> way to do this in win32. I tried defining my own malloc/memalign and
> free and linking it before libmsvcrt but it didn't work.

That won't work. Some allocated strings will come from other libraries
and must be freed with the standard free(), and possibly vice versa (you
need to give a pointer freeable with standard free() to something). So
it's generally not possible to switch the whole program to use an
incompatible allocator like that.

If the system lacks any way to allocate aligned memory freeable with
standard free() then there is no clean solution.




More information about the MPlayer-dev-eng mailing list