History

fix UT failed

karina li committed 11 years ago

Commit 1c3f7b21 parent e0d43a81 file · +3 −2Browse files

Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all

Unified · Split

test/api/encode_decode_api_test.cpp+3−2
@@ -36,7 +36,7 @@ using namespace WelsCommon; · 35 unmodified lines
3636 #define LONG_TERM_REF_NUM_SCREEN (4)
3737 #define MAX_REFERENCE_PICTURE_COUNT_NUM_CAMERA (6)
3838 #define MAX_REFERENCE_PICTURE_COUNT_NUM_SCREEN (8)
39−
39+#define VALID_SIZE(iSize) (((iSize)>16)?(iSize):16)
4040 #define GET_MB_WIDTH(x) (((x) + 15)/16)
4141
4242 typedef struct SLost_Sim {
@@ -3372,7 +3372,8 @@ TEST_F (EncodeDecodeTestAPI, SimulcastAVC_SPS_PPS_LISTING) { · 3329 unmodified lines
33723372 float fFrameRate = rand() + 0.5f;
33733373 int iEncFrameNum = WelsClip3 ((rand() % ENCODE_FRAME_NUM) + 1, 1, ENCODE_FRAME_NUM);
33743374 int iSliceNum = 1;
3375−
3375+ iWidth = VALID_SIZE(iWidth);
3376+ iHeight = VALID_SIZE(iHeight);
33763377 // prepare params
33773378 SEncParamExt sParam1;
33783379 SEncParamExt sParam2;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t