[Ffmpeg-devel] [PATCH] Fix for rgb32to15

Michael Niedermayer michaelni
Tue Apr 17 23:28:06 CEST 2007


On Tue, Apr 17, 2007 at 10:58:19PM +0200, Ivo wrote:
> Hi,
> In rgb32to15, the MMX code is run even if src_size is smaller than the size 
> of the units the MMX code processes. Although the code does not segfault 
> with cs_test, its behaviour is incorrect. The following patch fixes this by 
> jumping to the comparison at the end of the loop first, in which case the C 
> code will be executed for (very) small images or scanlines.


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070417/aa9bbee6/attachment.pgp>

More information about the ffmpeg-devel mailing list