shithub: openh264

Download patch

ref: 2f1a188aee201de8a6b6fdd6b820dda376e043c6
parent: 415dd10640a501d543138eb6aabae3c13e141e27
author: sijchen@cisco.com <sijchen@cisco.com>
date: Mon Apr 2 06:19:49 EDT 2018

add size limitation in UT to avoid random failure

--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -84,7 +84,7 @@
     SEncParamExt* pParam) {
   memset (pParam, 0, sizeof (SEncParamExt));
   encoder_->GetDefaultParams (pParam);
-  EncodeDecodeTestBase::prepareParam (iLayers, iSlices, width, height, framerate, pParam);
+  EncodeDecodeTestBase::prepareParam (iLayers, iSlices, VALID_SIZE(width), VALID_SIZE(height), framerate, pParam);
 }