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
36#define LONG_TERM_REF_NUM_SCREEN (4)36#define LONG_TERM_REF_NUM_SCREEN (4)
37#define MAX_REFERENCE_PICTURE_COUNT_NUM_CAMERA (6)37#define MAX_REFERENCE_PICTURE_COUNT_NUM_CAMERA (6)
38#define MAX_REFERENCE_PICTURE_COUNT_NUM_SCREEN (8)38#define MAX_REFERENCE_PICTURE_COUNT_NUM_SCREEN (8)
39 39#define VALID_SIZE(iSize) (((iSize)>16)?(iSize):16)
40#define GET_MB_WIDTH(x) (((x) + 15)/16)40#define GET_MB_WIDTH(x) (((x) + 15)/16)
41 41
42typedef struct SLost_Sim {42typedef struct SLost_Sim {
@@ -3372,7 +3372,8 @@ TEST_F (EncodeDecodeTestAPI, SimulcastAVC_SPS_PPS_LISTING) { · 3329 unmodified lines
3372 float fFrameRate = rand() + 0.5f;3372 float fFrameRate = rand() + 0.5f;
3373 int iEncFrameNum = WelsClip3 ((rand() % ENCODE_FRAME_NUM) + 1, 1, ENCODE_FRAME_NUM);3373 int iEncFrameNum = WelsClip3 ((rand() % ENCODE_FRAME_NUM) + 1, 1, ENCODE_FRAME_NUM);
3374 int iSliceNum = 1;3374 int iSliceNum = 1;
3375 3375 iWidth = VALID_SIZE(iWidth);
3376 iHeight = VALID_SIZE(iHeight);
3376 // prepare params3377 // prepare params
3377 SEncParamExt sParam1;3378 SEncParamExt sParam1;
3378 SEncParamExt sParam2;3379 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