]> granicus.if.org Git - libvpx/commitdiff
Fix input buffer initialization in convolution filter test
authorYi Luo <luoyi@google.com>
Wed, 22 Jun 2016 18:44:02 +0000 (11:44 -0700)
committerYi Luo <luoyi@google.com>
Wed, 22 Jun 2016 18:46:16 +0000 (11:46 -0700)
Change-Id: I70c0da96a81463d752e88b134b6fde012bd5823d

test/vp10_convolve_optimz_test.cc

index fa460bfe92e8f5e48f092d9c7260b4decc79f81d..1f26d0ad3e74b6035c0d7c398662d9ecfa0d8bbb 100644 (file)
@@ -94,10 +94,7 @@ void VP10ConvolveOptimzTest::PrepFilterBuffer(uint8_t *src, uint8_t *src_ref,
   int r, c;
   ACMRandom rnd(ACMRandom::DeterministicSeed());
 
-  memset(src, 0, maxBlockSize);
-  memset(src_ref, 0, maxBlockSize);
-  memset(dst, 0, maxBlockSize);
-  memset(dst_ref, 0, maxBlockSize);
+  memset(alloc_, 0, 4 * maxBlockSize);
 
   uint8_t *src_ptr = src;
   uint8_t *dst_ptr = dst;