Merge pull request #2629 from zhongwuzw/update_comments

Update color space filter comment when create icc profile color space
This commit is contained in:
DreamPiggy 2019-02-28 20:01:39 +08:00 committed by GitHub
commit c35229251e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@
colorSpaceRef = CGColorSpaceCreateWithICCProfile((__bridge CFDataRef)profileData);
WebPDemuxReleaseChunkIterator(&chunk_iter);
if (colorSpaceRef) {
// `CGImageCreate` does not support colorSpace other than RGB (such as Monochrome), we must filter the colorSpace mode
// We use RGB color model to decode WebP images currently, so we must filter out other colorSpace
CGColorSpaceModel model = CGColorSpaceGetModel(colorSpaceRef);
if (model != kCGColorSpaceModelRGB) {
CGColorSpaceRelease(colorSpaceRef);