Index: src/images/SkDecodingImageGenerator.cpp |
diff --git a/src/images/SkDecodingImageGenerator.cpp b/src/images/SkDecodingImageGenerator.cpp |
index a90c1cf01f8af0b2c169c70dd67045305324037a..cdee7c16764902c31d123d047ce42afa96474cfa 100644 |
--- a/src/images/SkDecodingImageGenerator.cpp |
+++ b/src/images/SkDecodingImageGenerator.cpp |
@@ -171,7 +171,7 @@ bool DecodingImageGenerator::onGetPixels(const SkImageInfo& info, |
TargetAllocator allocator(fInfo, pixels, rowBytes); |
decoder->setAllocator(&allocator); |
bool success = decoder->decode(fStream, &bitmap, info.colorType(), |
- SkImageDecoder::kDecodePixels_Mode); |
+ SkImageDecoder::kDecodePixels_Mode) != SkImageDecoder::kFailure; |
decoder->setAllocator(NULL); |
if (!success) { |
return false; |