Fix web format check not use immutable image data

This commit is contained in:
DreamPiggy 2017-10-08 14:15:42 +08:00
parent 624aa1e258
commit 4991cb3038
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}