diff options
author | msarett <msarett@google.com> | 2015-11-19 08:59:12 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-19 08:59:12 -0800 |
commit | a37662937cb0a44b5d75a9240cfa9587b4d60e9c (patch) | |
tree | d9c9a98e1ec1f4ef6017ac3c24977860378456f7 | |
parent | 24e7db8b2ea663f8fe4d7bbfa1d686fd643990bb (diff) |
Fix BMP RLE bug: attempt 2
BUG=skia:
Review URL: https://codereview.chromium.org/1457213003
-rw-r--r-- | src/codec/SkBmpRLECodec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/SkBmpRLECodec.cpp b/src/codec/SkBmpRLECodec.cpp index 2e04b8b7e6..4cee274ffe 100644 --- a/src/codec/SkBmpRLECodec.cpp +++ b/src/codec/SkBmpRLECodec.cpp @@ -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) { |