Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all
Unified · Split
| @@ -36,7 +36,7 @@ using namespace WelsCommon; · 35 unmodified lines | ||
| 36 | 36 | #define LONG_TERM_REF_NUM_SCREEN (4) |
| 37 | 37 | #define MAX_REFERENCE_PICTURE_COUNT_NUM_CAMERA (6) |
| 38 | 38 | #define MAX_REFERENCE_PICTURE_COUNT_NUM_SCREEN (8) |
| 39 | − | |
| 39 | +#define VALID_SIZE(iSize) (((iSize)>16)?(iSize):16) | |
| 40 | 40 | #define GET_MB_WIDTH(x) (((x) + 15)/16) |
| 41 | 41 | |
| 42 | 42 | typedef struct SLost_Sim { |
| @@ -3372,7 +3372,8 @@ TEST_F (EncodeDecodeTestAPI, SimulcastAVC_SPS_PPS_LISTING) { · 3329 unmodified lines | ||
| 3372 | 3372 | float fFrameRate = rand() + 0.5f; |
| 3373 | 3373 | int iEncFrameNum = WelsClip3 ((rand() % ENCODE_FRAME_NUM) + 1, 1, ENCODE_FRAME_NUM); |
| 3374 | 3374 | int iSliceNum = 1; |
| 3375 | − | |
| 3375 | + iWidth = VALID_SIZE(iWidth); | |
| 3376 | + iHeight = VALID_SIZE(iHeight); | |
| 3376 | 3377 | // prepare params |
| 3377 | 3378 | SEncParamExt sParam1; |
| 3378 | 3379 | SEncParamExt sParam2; |