Return the proper error code in SkBmpRLECodec
BUG=skia:4963 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1707933002 Review URL: https://codereview.chromium.org/1707933002
This commit is contained in:
parent
d2d2eb9a01
commit
2a98bac9cb
@ -287,7 +287,7 @@ SkCodec::Result SkBmpRLECodec::prepareToDecode(const SkImageInfo& dstInfo,
|
||||
fRLEBytes = fOrigRLEBytes;
|
||||
if (!this->initializeStreamBuffer()) {
|
||||
SkCodecPrintf("Error: cannot initialize stream buffer.\n");
|
||||
return SkCodec::kInvalidConversion;
|
||||
return SkCodec::kInvalidInput;
|
||||
}
|
||||
|
||||
return SkCodec::kSuccess;
|
||||
|
Loading…
Reference in New Issue
Block a user