[FFmpeg-devel] [PATCH] fix libswscale crash with contrast 0

Michael Niedermayer michaelni
Sun Jan 31 01:29:50 CET 2010

On Sun, Jan 31, 2010 at 12:57:08AM +0100, Reimar D?ffinger wrote:
> Hello,
> with contrast 0 (or only if lower?) there is a division by 0
> Here's a quick hack, no idea if it's correct, but I suspect
> it might be more correct even ignoring the crash.

the correct thing is likely what sws_setColorspaceDetails() does


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100131/09da2d81/attachment.pgp>

More information about the ffmpeg-devel mailing list