History

add valid adjustment in test to avoid outputing warning trace

sijchen committed 10 years ago

Commit 420778f1 parent 42ac53b2 files · +3 −1Browse files

Showing the changes to test/api/encode_options_test.cpp (1 of 2 files). Show all

Unified · Split

test/api/encode_options_test.cpp+3−0
@@ -1232,6 +1232,9 @@ TEST_F (EncodeDecodeTestAPI, SimulcastAVCDiffFps) { · 1231 unmodified lines
12321232 int iSpatialLayerNum = WelsClip3 ((rand() % MAX_SPATIAL_LAYER_NUM), 2, MAX_SPATIAL_LAYER_NUM);
12331233 int iWidth = WelsClip3 ((((rand() % MAX_WIDTH) >> 1) + 1) << 1, 1 << iSpatialLayerNum, MAX_WIDTH);
12341234 int iHeight = WelsClip3 ((((rand() % MAX_HEIGHT) >> 1) + 1) << 1, 1 << iSpatialLayerNum, MAX_HEIGHT);
1235+ iWidth = VALID_SIZE (iWidth);
1236+ iHeight = VALID_SIZE (iHeight);
1237+
12351238 float fFrameRate = 30;
12361239 int iEncFrameNum = WelsClip3 ((rand() % ENCODE_FRAME_NUM) + 1, 1, ENCODE_FRAME_NUM);
12371240 int iSliceNum = 1;

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