[x265] [PATCH] testbench: fix crash on downshift and upshift module
murugan at multicorewareinc.com
murugan at multicorewareinc.com
Tue Apr 22 08:46:15 CEST 2014
# HG changeset patch
# User Murugan Vairavel <murugan at multicorewareinc.com>
# Date 1398149117 -19800
# Tue Apr 22 12:15:17 2014 +0530
# Node ID bc8321f5968c829c6f2914b23d9eaa5106485163
# Parent 84315557c97ff2b10cf01910d6b131e28fce1781
testbench: fix crash on downshift and upshift module
Force testbench to pass height and width >= 16, As the encoder prevents encode
if height and width of the picture less than 16.
diff -r 84315557c97f -r bc8321f5968c source/test/pixelharness.cpp
--- a/source/test/pixelharness.cpp Mon Apr 21 22:23:48 2014 -0500
+++ b/source/test/pixelharness.cpp Tue Apr 22 12:15:17 2014 +0530
@@ -938,8 +938,8 @@
memset(opt_dest, 0xCD, sizeof(opt_dest));
int srcStride = 64;
- int width = rand() % 64;
- int height = 1 + rand() % 63;
+ int width = 16 + rand() % 48;
+ int height = 16 + rand() % 48;
int dstStride = width;
int j = 0;
@@ -967,8 +967,8 @@
memset(opt_dest, 0xCD, sizeof(opt_dest));
int srcStride = 64;
- int width = rand() % 64;
- int height = 1 + rand() % 63;
+ int width = 16 + rand() % 48;
+ int height = 16 + rand() % 48;
int dstStride = width;
int j = 0;
More information about the x265-devel
mailing list