shithub: libvpx

Download patch

ref: 77f889b2e34d80f62ddc43642f66f6bda020444c
parent: dea143327eeca7e68c3c49d7e1524f5837bb0f51
author: Yaowu Xu <yaowu@google.com>
date: Mon Feb 4 10:22:55 EST 2013

fix a build issue with MSVC on windows

for idct 16x16 unit test

Change-Id: I51da9405c3a4d7bb3f4cdf062aaccaa90b33dca4

--- a/test/dct16x16_test.cc
+++ b/test/dct16x16_test.cc
@@ -26,6 +26,15 @@
 
 namespace {
 
+#ifdef _MSC_VER
+static int round(double x) {
+  if (x < 0)
+    return (int)ceil(x - 0.5);
+  else
+    return (int)floor(x + 0.5);
+}
+#endif
+
 const double PI = 3.1415926535898;
 void reference2_16x16_idct_2d(double *input, double *output) {
   double x;