shithub: openh264

Download patch

ref: 12d50ad5651cdaa8a95186aa74ce756d4df39876
parent: e84284523a77c44f1689f5ebbb99847f2dcbc182
parent: e8d09bac0c61f370cfffeeb7d646ac4cff7503a8
author: HaiboZhu <haibozhu@cisco.com>
date: Thu Sep 10 05:05:20 EDT 2015

Merge pull request #2105 from ruil2/valid

update UT that makes input width or height more than 16

--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -147,11 +147,11 @@
 
 
   virtual int GetRandWidth() {
-    return WelsClip3 ((((rand() % MAX_WIDTH) >> 1) + 1) << 1, 2, MAX_WIDTH);
+    return WelsClip3 ((((rand() % MAX_WIDTH) >> 1) + 1) << 1, 16, MAX_WIDTH);
   }
 
   virtual int GetRandHeight() {
-    return WelsClip3 ((((rand() % MAX_HEIGHT) >> 1) + 1) << 1, 2, MAX_HEIGHT);
+    return WelsClip3 ((((rand() % MAX_HEIGHT) >> 1) + 1) << 1, 16, MAX_HEIGHT);
   }
 
  protected: