History

prevent int32 multiplication overflow

huili2 committed 12 years ago

Commit 606d7481 parent 6e8fceb3 files · +14 −14Browse files

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

Unified · Split

test/api/encoder_test.cpp+5−5
@@ -73,15 +73,15 @@ TEST_P(EncoderOutputTest, CompareOutput) { · 72 unmodified lines
73static const EncodeFileParam kFileParamArray[] = {73static const EncodeFileParam kFileParamArray[] = {
74 {74 {
75 "res/CiscoVT2people_320x192_12fps.yuv",75 "res/CiscoVT2people_320x192_12fps.yuv",
76 "86ee1314eabf5a6d6083c5260d36e2d908f36ea5", CAMERA_VIDEO_REAL_TIME, 320, 192, 12.0f, SM_SINGLE_SLICE, false, 176 "0a36b75e423fc6b49f6adf7eee12c039a096f538", CAMERA_VIDEO_REAL_TIME, 320, 192, 12.0f, SM_SINGLE_SLICE, false, 1
77 },77 },
78 {78 {
79 "res/CiscoVT2people_160x96_6fps.yuv",79 "res/CiscoVT2people_160x96_6fps.yuv",
80 "20f3e5cbefe70e5a8793e60672fd70e136bc082a", CAMERA_VIDEO_REAL_TIME, 160, 96, 6.0f, SM_SINGLE_SLICE, false, 180 "73981e6ea5b62f7338212c538a7cc755e7c9c030", CAMERA_VIDEO_REAL_TIME, 160, 96, 6.0f, SM_SINGLE_SLICE, false, 1
81 },81 },
82 {82 {
83 "res/Static_152_100.yuv",83 "res/Static_152_100.yuv",
84 "035f2e5b35947ab43cad7c5ca4cd8a3b658306ba", CAMERA_VIDEO_REAL_TIME, 152, 100, 6.0f, SM_SINGLE_SLICE, false, 184 "83db4c0e3006bbe039bd327b6e78c57fbb05316f", CAMERA_VIDEO_REAL_TIME, 152, 100, 6.0f, SM_SINGLE_SLICE, false, 1
85 },85 },
86 {86 {
87 "res/CiscoVT2people_320x192_12fps.yuv",87 "res/CiscoVT2people_320x192_12fps.yuv",
@@ -89,11 +89,11 @@ static const EncodeFileParam kFileParamArray[] = { · 1 unmodified line
89 },89 },
90 {90 {
91 "res/CiscoVT2people_320x192_12fps.yuv",91 "res/CiscoVT2people_320x192_12fps.yuv",
92 "6f49cc4e746522d7d91599c9a883072e838ae918", CAMERA_VIDEO_REAL_TIME, 320, 192, 12.0f, SM_SINGLE_SLICE, true, 192 "e64ba75456c821ca35a949eda89f85bff8ee69fa", CAMERA_VIDEO_REAL_TIME, 320, 192, 12.0f, SM_SINGLE_SLICE, true, 1
93 },93 },
94 {94 {
95 "res/CiscoVT2people_320x192_12fps.yuv",95 "res/CiscoVT2people_320x192_12fps.yuv",
96 "4da4526a763497cfd777e1a211c67df5e9d48b29", CAMERA_VIDEO_REAL_TIME, 320, 192, 12.0f, SM_SINGLE_SLICE, false, 296 "684e6d141ada776892bdb01ee93efe475983ed36", CAMERA_VIDEO_REAL_TIME, 320, 192, 12.0f, SM_SINGLE_SLICE, false, 2
97 },97 },
98 {98 {
99 "res/Cisco_Absolute_Power_1280x720_30fps.yuv",99 "res/Cisco_Absolute_Power_1280x720_30fps.yuv",

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