]> git.videolan.org Git - x264.git/commit
Attempt to detect miscompilation due to bug in gcc 4.2
authorJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 23 Sep 2009 00:30:19 +0000 (17:30 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 23 Sep 2009 09:15:02 +0000 (02:15 -0700)
commitd5429261cc2a2205d225b0f0c0802d3b565eb7bd
treec136ffa85058267e5dfb6f4fed75cac9d5dde0d7
parentc62060d242879d8271c22a486b286b91147d2ebf
Attempt to detect miscompilation due to bug in gcc 4.2
I don't know if this bug still affects latest x264, but it can't hurt to try to detect it.
Accordingly refuse to open the encoder if detected.
Apparently VLC (on Windows) has been distributed for some time with a completely
broken x264 due to the use of a completely broken compiler (gcc 4.2).  In
particular, the MV costs seem to be calculated incorrectly on win32 when linking
from an application compiled without -ffast-math to an application with
-ffast-math.
I am not entirely certain why this occurs, but the result is, unsurprisingly,
encoding quality that makes MPEG-2 look good, due to the motion search being
completely broken.
encoder/encoder.c