Skip to content

Commit 4b45cdd

Browse files
committed
Don't override the isDecoded = YES for non-CGContext drawn CGImage
1 parent 13f640b commit 4b45cdd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

SDWebImageWebPCoder/Classes/SDImageWebPCoder.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ - (UIImage *)decodedImageWithData:(NSData *)data options:(nullable SDImageCoderO
347347
UIImage *firstFrameImage = [[UIImage alloc] initWithCGImage:imageRef scale:scale orientation:kCGImagePropertyOrientationUp];
348348
#endif
349349
firstFrameImage.sd_imageFormat = SDImageFormatWebP;
350-
firstFrameImage.sd_isDecoded = YES; // We handle byte alignment and alloc bitmap buffer
351350
CGImageRelease(imageRef);
352351
WebPDemuxReleaseIterator(&iter);
353352
WebPDemuxDelete(demuxer);
@@ -1339,7 +1338,6 @@ - (UIImage *)safeAnimatedImageFrameAtIndex:(NSUInteger)index {
13391338
image = [[UIImage alloc] initWithCGImage:imageRef scale:_scale orientation:kCGImagePropertyOrientationUp];
13401339
#endif
13411340
image.sd_imageFormat = SDImageFormatWebP;
1342-
image.sd_isDecoded = YES; // We handle byte alignment and alloc bitmap buffer
13431341
CGImageRelease(imageRef);
13441342

13451343
WebPDemuxReleaseIterator(&iter);

0 commit comments

Comments
 (0)