[MPlayer-users] [PATCH] crash in libavcodec/i386/dsputil_mmx.c:float_to_int16_sse2

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Fri Jul 11 19:10:53 CEST 2008


Hello,
On Thu, Jul 10, 2008 at 08:58:35PM -0400, Ray Kohler wrote:
> The problem is that this code treats an unaligned doubleword as if it  
> were aligned (i.e., it segfaults when executing "movdqa").

This is most likely a problem in MPlayer, FFmpeg requires the output
buffer to be sufficiently aligned.
A sample file would be welcome though (if you think it should happen
with all vorbis files, check with those at:
http://samples.mplayerhq.hu/A-codecs/vorbis/ )

> There also  
> appears to be a missing "emms" instruction at the end of the function,  
> though this part doesn't seem to actually matter as far as I can tell.

You are wrong. Only code using MMX registers (%%mmx...) need it, code
only using SSE registers (%%xmm...) as this one do not.

Greetings,
Reimar Döffinger



More information about the MPlayer-users mailing list