Fix BMP RLE bug
decodeRows() should return an int, not an SkCodec::Result BUG=skia: Review URL: https://codereview.chromium.org/1457793003
This commit is contained in:
parent
15d5b82f90
commit
bc890c8490
@ -349,7 +349,7 @@ int SkBmpRLECodec::decodeRows(const SkImageInfo& info, void* dst, size_t dstRowB
|
||||
y++;
|
||||
break;
|
||||
case RLE_EOF:
|
||||
return kSuccess;
|
||||
return y;
|
||||
case RLE_DELTA: {
|
||||
// Two bytes are needed to specify delta
|
||||
if ((int) fRLEBytes - fCurrRLEByte < 2) {
|
||||
|
Loading…
Reference in New Issue
Block a user