]> granicus.if.org Git - libvpx/commitdiff
sixtap_predict_test: fix sizes passed to memset
authorJames Zern <jzern@google.com>
Fri, 22 Feb 2013 19:29:47 +0000 (11:29 -0800)
committerJames Zern <jzern@google.com>
Fri, 22 Feb 2013 19:29:47 +0000 (11:29 -0800)
src_/dst_/dst_c_ are heap allocated, use the allocation size rather than
sizeof(var)

Change-Id: I3335ad487dc9b154cdf212891d1d74c812eff060

test/sixtap_predict_test.cc

index 2d4581dc07fb0b4413d2a8642ba3938df207c1d5..9ab7a73479d1e184a8e9dc1208321b7cb122c185 100644 (file)
@@ -61,9 +61,9 @@ class SixtapPredictTest : public PARAMS(int, int, sixtap_predict_fn_t) {
     width_ = GET_PARAM(0);
     height_ = GET_PARAM(1);
     sixtap_predict_ = GET_PARAM(2);
-    memset(src_, 0, sizeof(src_));
-    memset(dst_, 0, sizeof(dst_));
-    memset(dst_c_, 0, sizeof(dst_c_));
+    memset(src_, 0, kSrcSize);
+    memset(dst_, 0, kDstSize);
+    memset(dst_c_, 0, kDstSize);
   }
 
   int width_;