Showing the changes to test/api/DataGenerator.cpp (1 of 6 files). Show all
Unified · Split
| @@ -19,7 +19,7 @@ bool YUVPixelDataGenerator( uint8_t* pPointer, int32_t iWidth, int32_t iHeight, · 18 unmodified lines | |||
| 19 | const int32_t kiFrameSize = SRC_FRAME_WIDTH*SRC_FRAME_HEIGHT; | 19 | const int32_t kiFrameSize = SRC_FRAME_WIDTH*SRC_FRAME_HEIGHT; |
| 20 | BufferedData sBuf; | 20 | BufferedData sBuf; |
| 21 | sBuf.SetLength(kiFrameSize); | 21 | sBuf.SetLength(kiFrameSize); |
| 22 | if (sBuf.Length() != kiFrameSize) { | 22 | if (sBuf.Length() != (size_t)kiFrameSize) { |
| 23 | return false; | 23 | return false; |
| 24 | } | 24 | } |
| 25 | 25 | ||