Index: src/codec/SkBmpRLECodec.cpp |
diff --git a/src/codec/SkBmpRLECodec.cpp b/src/codec/SkBmpRLECodec.cpp |
index 2e04b8b7e6cbc59ea830f4a369939d33ccc44621..4cee274ffecc31534acb8d56380727ed3967463c 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; |
msarett
2015/11/19 15:16:56
We will often hit the EOF marker when x=width, y=h
scroggo
2015/11/19 15:55:51
Maybe file a bug and/or add a FIXME? It seems unfo
msarett
2015/11/19 16:23:29
Will file a bug.
|
case RLE_DELTA: { |
// Two bytes are needed to specify delta |
if ((int) fRLEBytes - fCurrRLEByte < 2) { |