aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkBmpRLECodec.cpp
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2015-11-18 11:43:08 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-18 11:43:08 -0800
commitbc890c84909535b4e3dc78337a9d52c82d527290 (patch)
tree06007540649c56b8186bb6ee0fb2cee4c7bdaa64 /src/codec/SkBmpRLECodec.cpp
parent15d5b82f903245eed58fd2658a03187b07d27423 (diff)
Fix BMP RLE bug
decodeRows() should return an int, not an SkCodec::Result BUG=skia: Review URL: https://codereview.chromium.org/1457793003
Diffstat (limited to 'src/codec/SkBmpRLECodec.cpp')
-rw-r--r--src/codec/SkBmpRLECodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/SkBmpRLECodec.cpp b/src/codec/SkBmpRLECodec.cpp
index 32580c3fa5..2e04b8b7e6 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 kSuccess;
+ return y;
case RLE_DELTA: {
// Two bytes are needed to specify delta
if ((int) fRLEBytes - fCurrRLEByte < 2) {