We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f0003b commit 6559b55Copy full SHA for 6559b55
SDWebImageAVIFCoder/Classes/SDImageAVIFCoder.m
@@ -348,6 +348,7 @@ - (UIImage *)animatedImageFrameAtIndex:(NSUInteger)index {
348
SD_LOCK(_lock);
349
avifResult decodeResult = avifDecoderNthImage(_decoder, (uint32_t)index);
350
if (decodeResult != AVIF_RESULT_OK) {
351
+ SD_UNLOCK(_lock);
352
return nil;
353
}
354
CGImageRef imageRef = SDCreateCGImageFromAVIF(_decoder->image);
0 commit comments