shithub: libvpx

Download patch

ref: 4005b2d822ef1fca3a5bcf93cab90161f1f75510
parent: f5827aee388328484e32b6f4993d5737e8e0c531
parent: 5c93e62e0af1929cef1a3c6e377fff3d967553a5
author: Yunqing Wang <yunqingwang@google.com>
date: Fri Jul 25 06:53:13 EDT 2014

Merge "Allocate aligned source in variance test"

--- a/test/variance_test.cc
+++ b/test/variance_test.cc
@@ -90,7 +90,7 @@
 
     rnd(ACMRandom::DeterministicSeed());
     block_size_ = width_ * height_;
-    src_ = new uint8_t[block_size_];
+    src_ = reinterpret_cast<uint8_t *>(vpx_memalign(16, block_size_));
     ref_ = new uint8_t[block_size_];
     ASSERT_TRUE(src_ != NULL);
     ASSERT_TRUE(ref_ != NULL);
@@ -97,7 +97,7 @@
   }
 
   virtual void TearDown() {
-    delete[] src_;
+    vpx_free(src_);
     delete[] ref_;
     libvpx_test::ClearSystemState();
   }