Skip to content

Commit b883892

Browse files
committed
Fix the code about ICC profile
1 parent fa58d89 commit b883892

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

SDWebImageAVIFCoder/Classes/ColorSpace.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@ void SDAVIFCalcColorSpaceMono(avifImage * avif, CGColorSpaceRef* ref, BOOL* shou
222222
*ref = CGColorSpaceCreateWithICCProfile((__bridge CFDataRef)iccData);
223223
*shouldRelease = TRUE;
224224
}
225-
*ref = defaultColorSpace;
226-
*shouldRelease = FALSE;
227225
return;
228226
}
229227
avifColorPrimaries const colorPrimaries = avif->colorPrimaries;
@@ -322,8 +320,6 @@ void SDAVIFCalcColorSpaceRGB(avifImage * avif, CGColorSpaceRef* ref, BOOL* shoul
322320
*ref = CGColorSpaceCreateWithICCProfile((__bridge CFDataRef)iccData);
323321
*shouldRelease = TRUE;
324322
}
325-
*ref = defaultColorSpace;
326-
*shouldRelease = FALSE;
327323
return;
328324
}
329325
avifColorPrimaries const colorPrimaries = avif->colorPrimaries;

0 commit comments

Comments
 (0)