[x265] [PATCH] bugfix: PixelHarness::check_pixelavg_pp() output buffer did not initialize

Min Chen chenm003 at 163.com
Mon Nov 11 10:42:04 CET 2013


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1384162892 -28800
# Node ID ad9690a3e546d6fd06e923cb902cf00deeef60a6
# Parent  e1f09cac66aae9eb707276435a90331bdaf135d3
bugfix: PixelHarness::check_pixelavg_pp() output buffer did not initialize

diff -r e1f09cac66aa -r ad9690a3e546 source/test/pixelharness.cpp
--- a/source/test/pixelharness.cpp	Mon Nov 11 16:21:00 2013 +0800
+++ b/source/test/pixelharness.cpp	Mon Nov 11 17:41:32 2013 +0800
@@ -472,10 +472,13 @@
 
     int j = 0;
 
+    memset(ref_dest, 0xCD, sizeof(ref_dest));
+    memset(opt_dest, 0xCD, sizeof(opt_dest));
+
     for (int i = 0; i < ITERS; i++)
     {
+        ref(ref_dest, STRIDE, pbuf1 + j, STRIDE, pbuf2 + j, STRIDE, 32);
         opt(opt_dest, STRIDE, pbuf1 + j, STRIDE, pbuf2 + j, STRIDE, 32);
-        ref(ref_dest, STRIDE, pbuf1 + j, STRIDE, pbuf2 + j, STRIDE, 32);
 
         if (memcmp(ref_dest, opt_dest, 64 * 64 * sizeof(pixel)))
             return false;



More information about the x265-devel mailing list