Index: Source/WebCore/platform/image-decoders/webp/WEBPImageDecoder.cpp |
=================================================================== |
--- Source/WebCore/platform/image-decoders/webp/WEBPImageDecoder.cpp (revision 103267) |
+++ Source/WebCore/platform/image-decoders/webp/WEBPImageDecoder.cpp (working copy) |
@@ -111,7 +111,7 @@ |
m_rgbOutput.resize(height * stride); |
} |
int newLastVisibleRow = 0; // Last completed row. |
- if (allDataReceived) { |
+ if (allDataReceived && !m_decoder) { |
if (!WebPDecodeRGBInto(dataBytes, dataSize, m_rgbOutput.data(), m_rgbOutput.size(), stride)) |
return setFailed(); |
newLastVisibleRow = height; |