Skip to content

Commit f3d40d6

Browse files
authored
Merge pull request #78 from PennyWang-Tank/master
fixbug : JpgEncoder::reserveData return true when not need malloc me…
2 parents 4935e1f + 74e906c commit f3d40d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jni/minicap/JpgEncoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ JpgEncoder::getEncodedData() {
5050
bool
5151
JpgEncoder::reserveData(uint32_t width, uint32_t height) {
5252
if (width == mMaxWidth && height == mMaxHeight) {
53-
return 0;
53+
return true;
5454
}
5555

5656
tjFree(mEncodedData);

0 commit comments

Comments
 (0)