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:
msarett 2016-02-17 14:06:46 -08:00 committed by Commit bot
parent d2d2eb9a01
commit 2a98bac9cb

View File

@ -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;