From 3eb00c89e7ed16ce284a56b26eaee0eb3d76ab03 Mon Sep 17 00:00:00 2001 From: mudlord Date: Wed, 2 Jan 2008 10:41:48 +0000 Subject: [PATCH] Fixed issue with ">>" in C HQXX implementation for Linux and Win32 x64 --- src/hq/c/hq_shared.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hq/c/hq_shared.h b/src/hq/c/hq_shared.h index e8da9247..6c489b51 100644 --- a/src/hq/c/hq_shared.h +++ b/src/hq/c/hq_shared.h @@ -241,7 +241,7 @@ inline unsigned int RGBtoYUV_32( unsigned int c ) register unsigned char r, g, b; b = c & 0x0000FF; g = ( c & 0x00FF00 ) >> 8; - r = c & >> 16; + r = ( c & 0xFF0000 ) >> 16; return ( (r + g + b) << 14 ) + ( ( r - b + 512 ) << 4 ) + ( ( 2*g - r - b ) >> 3 ) + 128;