17 lines
648 B
Plaintext
17 lines
648 B
Plaintext
$OpenBSD: patch-libswscale_rgb2rgb_c,v 1.2 2011/06/22 13:10:57 dcoppa Exp $
|
|
|
|
Fix a runtime CPU detection bug in libswscale that affected thumbnails
|
|
creation on amd64 (git commit 93c28a55fd84280d97c3c0dd7b0d546043242c34)
|
|
|
|
--- libswscale/rgb2rgb.c.orig Tue Mar 29 01:23:17 2011
|
|
+++ libswscale/rgb2rgb.c Tue Jun 21 14:17:21 2011
|
|
@@ -201,7 +201,7 @@ DECLARE_ASM_CONST(8, uint64_t, blue_15mask) = 0x00000
|
|
|
|
void sws_rgb2rgb_init(int flags)
|
|
{
|
|
-#if HAVE_MMX2 || HAVE_AMD3DNOW || HAVE_MMX
|
|
+#if HAVE_SSE2 || HAVE_MMX2 || HAVE_AMD3DNOW || HAVE_MMX
|
|
if (flags & SWS_CPU_CAPS_SSE2)
|
|
rgb2rgb_init_SSE2();
|
|
else if (flags & SWS_CPU_CAPS_MMX2)
|