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.
2 parents 0f0003b + 6559b55 commit b320094Copy full SHA for b320094
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