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/encode_options_test.cpp (1 of 9 files). Show all

Unified · Split

test/api/encode_options_test.cpp+1−1
@@ -16,7 +16,7 @@ bool EncodeDecodeTestAPIBase::InitialEncDec (int iWidth, int iHeight) { · 15 unmodified lines
1616 int frameSize = iWidth * iHeight * 3 / 2;
1717
1818 buf_.SetLength (frameSize);
19− if (buf_.Length() != (size_t)frameSize) {
19+ if (buf_.Length() != (size_t)frameSize) { //include memory fail (-1) case
2020 printf ("buf_.Length() failed! frameSize = %d\n", frameSize);
2121 return false;
2222 }

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