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

Gianluigi Tiesi mplayer at netfarm.it
Tue Mar 16 15:36:04 CET 2010


I've noticed that memalign is an alias for malloc on mingw
and mp images allocates planes this way:
memalign(64, mpi...)

after some functions in libavcodec:


put_pixels16_sse2(uint8_t *block

block is not 16bytes aligned
and it crashes on p4

I think we may need to make custom alloc/dealloc/strdup functions
to avoid these problems, mingwex offers:

__mingw_aligned_malloc
__mingw_aligned_realloc
__mingw_aligned_free

that can be used for this

Regards


-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/



More information about the MPlayer-dev-eng mailing list