Bugfix for loopCount (#2155)
If a GIF image has no Netscape 2.0 loop extension, it is meant to play once and then stop
This commit is contained in:
parent
61703fced0
commit
a6c0570987
|
@ -72,7 +72,7 @@
|
|||
[frames addObject:frame];
|
||||
}
|
||||
|
||||
NSUInteger loopCount = 0;
|
||||
NSUInteger loopCount = 1;
|
||||
NSDictionary *imageProperties = (__bridge_transfer NSDictionary *)CGImageSourceCopyProperties(source, nil);
|
||||
NSDictionary *gifProperties = [imageProperties valueForKey:(__bridge_transfer NSString *)kCGImagePropertyGIFDictionary];
|
||||
if (gifProperties) {
|
||||
|
|
Loading…
Reference in New Issue