[Ffmpeg-devel] [PATCH] Fix for rgb32to15

Ivo ivop
Tue Apr 17 22:58:19 CEST 2007


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rgb32to15.fix.patch
Type: text/x-diff
Size: 563 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070417/e8706bd1/attachment.patch>

More information about the ffmpeg-devel mailing list