]> git.sesse.net Git - ffmpeg/commit
swscale: fix invalid conversions and memory problems.
authorRonald S. Bultje <rsbultje@gmail.com>
Thu, 12 Jan 2012 23:37:58 +0000 (15:37 -0800)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 13 Jan 2012 00:38:29 +0000 (16:38 -0800)
commite7843db3df0224cafcc1af9da103a3a7286ae2ba
tree8e405a1918f213f4bd126862b2a87dc4d328af6e
parent55b9ef18e4a139fc24a3b695cb3c176f3ced09b8
swscale: fix invalid conversions and memory problems.

Fixes problems where rgbToRgbWrapper() is called even though it doesn't
support this particular conversion (e.g. converting from RGB444 to
anything). Thirdly, fixes issues where rgbToRgbWrapper() is called for
non-native endiannness conversions (e.g. RGB555BE on a LE system).
Fourthly, fixes crashes when converting from e.g. monowhite to
monowhite, which calls planarCopyWrapper() and overwrites/reads because
n_bytes != n_pixels.
libswscale/swscale_unscaled.c