Index: src/codec/SkRawCodec.cpp |
diff --git a/src/codec/SkRawCodec.cpp b/src/codec/SkRawCodec.cpp |
index f400b19d89ed0b4eb6a6dba3afedc316d9bf8e5e..da3c28c549ff617cc74df0effb9ff18177eca023 100644 |
--- a/src/codec/SkRawCodec.cpp |
+++ b/src/codec/SkRawCodec.cpp |
@@ -508,7 +508,7 @@ SkCodec::Result SkRawCodec::onGetPixels(const SkImageInfo& requestedInfo, void* |
buffer.fPlaneStep = 1; |
buffer.fPixelType = ttByte; |
buffer.fPixelSize = sizeof(uint8_t); |
- buffer.fRowStep = sizeof(srcRow); |
+ buffer.fRowStep = width * 3; |
for (int i = 0; i < height; ++i) { |
buffer.fArea = dng_rect(i, 0, i + 1, width); |