From a657d970e4c015f5ca939188e736e905244862fe Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Fri, 20 Sep 2019 16:01:14 +0800 Subject: [PATCH] Fix the defaultLoopCount function during refactory --- SDWebImage/Core/SDImageIOAnimatedCoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/Core/SDImageIOAnimatedCoder.m b/SDWebImage/Core/SDImageIOAnimatedCoder.m index c17a33bc..632bd172 100644 --- a/SDWebImage/Core/SDImageIOAnimatedCoder.m +++ b/SDWebImage/Core/SDImageIOAnimatedCoder.m @@ -101,7 +101,7 @@ #pragma mark - Utils + (NSUInteger)imageLoopCountWithSource:(CGImageSourceRef)source { - NSUInteger loopCount = 1; + NSUInteger loopCount = self.defaultLoopCount; NSDictionary *imageProperties = (__bridge_transfer NSDictionary *)CGImageSourceCopyProperties(source, nil); NSDictionary *containerProperties = imageProperties[self.dictionaryProperty]; if (containerProperties) {