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) {