Fix web format check not use immutable image data
This commit is contained in:
parent
624aa1e258
commit
4991cb3038
|
@ -480,7 +480,7 @@ didReceiveResponse:(NSURLResponse *)response
|
|||
shouldDecode = NO;
|
||||
} else {
|
||||
#ifdef SD_WEBP
|
||||
SDImageFormat imageFormat = [NSData sd_imageFormatForImageData:self.imageData];
|
||||
SDImageFormat imageFormat = [NSData sd_imageFormatForImageData:imageData];
|
||||
if (imageFormat == SDImageFormatWebP) {
|
||||
shouldDecode = NO;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue