[x265] [PATCH] Fixed size issue in xDeQuant test code

praveen at multicorewareinc.com praveen at multicorewareinc.com
Tue Jun 25 14:08:52 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1372162110 -19800
# Node ID 4e7a3fc1c49854ab89de035b6bc9690627463d69
# Parent  2d4eb5e859db3ef478ac6483128a8445c5498283
Fixed size issue in xDeQuant test code

diff -r 2d4eb5e859db -r 4e7a3fc1c498 source/test/mbdstharness.cpp
--- a/source/test/mbdstharness.cpp	Tue Jun 25 17:24:38 2013 +0530
+++ b/source/test/mbdstharness.cpp	Tue Jun 25 17:38:30 2013 +0530
@@ -203,10 +203,12 @@
 
         unsigned int uiLog2TrSize = (rand() % 4) + 2;
 
+        int cmp_size = sizeof(int) * iWidth * iWidth;
+
         opt(8, mintbuf1 + j, mintbuf3, iWidth, iHeight, iPer, iRem, useScalingList, uiLog2TrSize, mintbuf2 + j);  // g_bitDepthY  = 8, g_bitDepthC = 8
         ref(8, mintbuf1 + j, mintbuf4, iWidth, iHeight, iPer, iRem, useScalingList, uiLog2TrSize, mintbuf2 + j);
 
-        if (memcmp(mintbuf3, mintbuf4, mem_cmp_size))
+        if (memcmp(mintbuf3, mintbuf4, cmp_size))
             return false;
 
         j += 16;


More information about the x265-devel mailing list