[x265] [PATCH] testbench : fix for 16bpp test bench crash

nabajit at multicorewareinc.com nabajit at multicorewareinc.com
Tue Feb 4 13:35:24 CET 2014


# HG changeset patch
# User Nabajit Deka
# Date 1391517315 -19800
#      Tue Feb 04 18:05:15 2014 +0530
# Node ID 5a288f3c74c10ef481d62c83ae9ef509439cfbf1
# Parent  ff430d39d4280f01dbcd57cfbe3f6f45f4fbe6a1
testbench : fix for 16bpp test bench crash

diff -r ff430d39d428 -r 5a288f3c74c1 source/test/ipfilterharness.cpp
--- a/source/test/ipfilterharness.cpp	Mon Feb 03 23:59:51 2014 -0600
+++ b/source/test/ipfilterharness.cpp	Tue Feb 04 18:05:15 2014 +0530
@@ -57,7 +57,7 @@
 
     for (int i = 0; i < TEST_CASES; i++)
     {
-        pixel_test_buff[i] = X265_MALLOC(pixel, ipf_t_size);
+        pixel_test_buff[i] = X265_MALLOC(pixel, ipf_t_size * sizeof(pixel));
         if (!pixel_test_buff[i])
         {
             fprintf(stderr, "init_IPFilter_buffers: malloc failed, unable to initiate tests!\n");


More information about the x265-devel mailing list