ref: 047406850370f98a9f364a13a115dfa93ada64da
parent: e0d43a8a1f723a40e8e2fcc4fadb941499ad0665
parent: 1c3f7b2b1122aad37d914982a06c989014f1ed64
author: HaiboZhu <haibozhu@cisco.com>
date: Tue Sep 15 10:00:48 EDT 2015
Merge pull request #2118 from ruil2/valid1 fix UT failed
--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -36,7 +36,7 @@
#define LONG_TERM_REF_NUM_SCREEN (4)
#define MAX_REFERENCE_PICTURE_COUNT_NUM_CAMERA (6)
#define MAX_REFERENCE_PICTURE_COUNT_NUM_SCREEN (8)
-
+#define VALID_SIZE(iSize) (((iSize)>16)?(iSize):16)
#define GET_MB_WIDTH(x) (((x) + 15)/16)
typedef struct SLost_Sim {
@@ -3372,7 +3372,8 @@
float fFrameRate = rand() + 0.5f;
int iEncFrameNum = WelsClip3 ((rand() % ENCODE_FRAME_NUM) + 1, 1, ENCODE_FRAME_NUM);
int iSliceNum = 1;
-
+ iWidth = VALID_SIZE(iWidth);
+ iHeight = VALID_SIZE(iHeight);
// prepare params
SEncParamExt sParam1;
SEncParamExt sParam2;