[x265] [PATCH] testbench: fix buffer pointer bug in check_IPFilterLumaHV_primitive

Min Chen chenm003 at 163.com
Thu Jan 8 06:48:44 CET 2015


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1420696117 -28800
# Node ID f93232d5434f021d96f3c1516cd866892e4503df
# Parent  ff32d97fe59ce9d8dc04d785c605f44d18dcdcee
testbench: fix buffer pointer bug in check_IPFilterLumaHV_primitive
---
 source/test/ipfilterharness.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r ff32d97fe59c -r f93232d5434f source/test/ipfilterharness.cpp
--- a/source/test/ipfilterharness.cpp	Wed Jan 07 14:27:33 2015 +0530
+++ b/source/test/ipfilterharness.cpp	Thu Jan 08 13:48:37 2015 +0800
@@ -487,14 +487,14 @@
                 rand_srcStride = rand() % 100;
                 rand_dstStride = rand() % 100 + 64;
 
-                ref(pixel_test_buff[index] + 3 * rand_srcStride,
+                ref(pixel_test_buff[index] + 3 * rand_srcStride + 3,
                     rand_srcStride,
                     IPF_C_output_p,
                     rand_dstStride,
                     coeffIdxX,
                     coeffIdxY);
 
-                checked(opt, pixel_test_buff[index] + 3 * rand_srcStride,
+                checked(opt, pixel_test_buff[index] + 3 * rand_srcStride + 3,
                         rand_srcStride,
                         IPF_vec_output_p,
                         rand_dstStride,



More information about the x265-devel mailing list