Index: src/codec/SkJpegCodec.cpp |
diff --git a/src/codec/SkJpegCodec.cpp b/src/codec/SkJpegCodec.cpp |
index 28e1e12bfc4ed7aa3272947a32662c03d72593c1..5acc0b396c54d34abb922f80687104b54f85990a 100644 |
--- a/src/codec/SkJpegCodec.cpp |
+++ b/src/codec/SkJpegCodec.cpp |
@@ -308,6 +308,11 @@ SkCodec::Result SkJpegCodec::onGetPixels(const SkImageInfo& dstInfo, |
return fDecoderMgr->returnFailure("could not rewind stream", kCouldNotRewind); |
} |
+ if (options.fSubset) { |
+ // Subsets are not supported. |
+ return kUnimplemented; |
+ } |
+ |
// Get a pointer to the decompress info since we will use it quite frequently |
jpeg_decompress_struct* dinfo = fDecoderMgr->dinfo(); |