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