History

fix low memory crash issue

wayne committed 7 years ago

Commit d58148c1 parent 9a815399 files · +38 −24Browse files

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

Unified · Split

test/api/DataGenerator.cpp+1−1
@@ -17,7 +17,7 @@ bool YUVPixelDataGenerator (uint8_t* pPointer, int32_t iWidth, int32_t iHeight, · 16 unmodified lines
17 const int32_t kiFrameSize = SRC_FRAME_WIDTH * SRC_FRAME_HEIGHT;17 const int32_t kiFrameSize = SRC_FRAME_WIDTH * SRC_FRAME_HEIGHT;
18 BufferedData sBuf;18 BufferedData sBuf;
19 sBuf.SetLength (kiFrameSize);19 sBuf.SetLength (kiFrameSize);
20 if (sBuf.Length() != (size_t)kiFrameSize) {20 if (sBuf.Length() != (size_t)kiFrameSize) { //include memory fail (-1) case
21 return false;21 return false;
22 }22 }
23 23

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