1Name: libyuv 2URL: https://chromium.googlesource.com/libyuv/libyuv/ 3Version: dfaf7534e0e536f7e5ef8ddd7326797bd09b8622 4License: BSD 5License File: LICENSE 6 7Description: 8libyuv is an open source project that includes YUV conversion and scaling 9functionality. 10 11The optimized scaler in libyuv is used in multiple resolution encoder example, 12which down-samples the original input video (f.g. 1280x720) a number of times 13in order to encode multiple resolution bit streams. 14 15Local Modifications: 16 17diff --git a/third_party/libyuv/source/cpu_id.cc b/third_party/libyuv/source/cpu_id.cc 18index fe89452b7..72a7fb82f 100644 19--- a/third_party/libyuv/source/cpu_id.cc 20+++ b/third_party/libyuv/source/cpu_id.cc 21@@ -108,7 +108,7 @@ void CpuId(int eax, int ecx, int* cpu_info) { 22 // } 23 // For VS2013 and earlier 32 bit, the _xgetbv(0) optimizer produces bad code. 24 // https://code.google.com/p/libyuv/issues/detail?id=529 25-#if defined(_M_IX86) && (_MSC_VER < 1900) 26+#if defined(_M_IX86) && defined(_MSC_VER) && (_MSC_VER < 1900) 27 #pragma optimize("g", off) 28 #endif 29 #if (defined(_M_IX86) || defined(_M_X64) || defined(__i386__) || \ 30@@ -129,7 +129,7 @@ int GetXCR0() { 31 #define GetXCR0() 0 32 #endif // defined(_M_IX86) || defined(_M_X64) .. 33 // Return optimization to previous setting. 34-#if defined(_M_IX86) && (_MSC_VER < 1900) 35+#if defined(_M_IX86) && defined(_MSC_VER) && (_MSC_VER < 1900) 36 #pragma optimize("g", on) 37 #endif 38