shithub: libvpx

Download patch

ref: 90d21bb28e2def7f43d5e59305c08b684a14b594
parent: 0b8b682b70b2e007071824b2733c5c11d6f4fd6f
parent: d637c2b41fdd89b72cc10009c619c345d0776efa
author: James Zern <[email protected]>
date: Fri Aug 15 15:06:31 EDT 2014

Merge "frame_size_tests: reduce 'large' size for win32"

--- a/test/frame_size_tests.cc
+++ b/test/frame_size_tests.cc
@@ -72,7 +72,13 @@
   // one for each lag in frames (for 2 pass), and then one for each possible
   // reference buffer (8) - we can end up with up to 30 buffers of roughly this
   // size or almost 1 gig of memory.
+  // In total the allocations will exceed 2GiB which may cause a failure with
+  // mingw + wine, use a smaller size in that case.
+#if defined(_WIN32) && !defined(_WIN64)
+  video.SetSize(4096, 3072);
+#else
   video.SetSize(4096, 4096);
+#endif
   video.set_limit(2);
   expected_res_ = VPX_CODEC_OK;
   ASSERT_NO_FATAL_FAILURE(RunLoop(&video));