ref: 1c3f7b2b1122aad37d914982a06c989014f1ed64
parent: e0d43a8a1f723a40e8e2fcc4fadb941499ad0665
author: karina li <ruil2@cisco.com>
date: Tue Sep 15 09:07:30 EDT 2015
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;