Index: src/codec/SkBmpRLECodec.cpp |
diff --git a/src/codec/SkBmpRLECodec.cpp b/src/codec/SkBmpRLECodec.cpp |
index 32580c3fa5155eecd2ade1d66d96c5ead2fc94ac..2e04b8b7e6cbc59ea830f4a369939d33ccc44621 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) { |