Showing the changes to test/api/DataGenerator.cpp (1 of 9 files). Show all
Unified · Split
| @@ -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 | ||