Showing the changes to test/api/encode_options_test.cpp (1 of 9 files). Show all
Unified · Split
| @@ -16,7 +16,7 @@ bool EncodeDecodeTestAPIBase::InitialEncDec (int iWidth, int iHeight) { · 15 unmodified lines | ||
| 16 | 16 | int frameSize = iWidth * iHeight * 3 / 2; |
| 17 | 17 | |
| 18 | 18 | buf_.SetLength (frameSize); |
| 19 | − if (buf_.Length() != (size_t)frameSize) { | |
| 19 | + if (buf_.Length() != (size_t)frameSize) { //include memory fail (-1) case | |
| 20 | 20 | printf ("buf_.Length() failed! frameSize = %d\n", frameSize); |
| 21 | 21 | return false; |
| 22 | 22 | } |