Merge pull request #1447 from slackhq/master
Protect against malformed frame
This commit is contained in:
commit
e41af47e2f
|
@ -32,6 +32,9 @@
|
|||
|
||||
for (size_t i = 0; i < count; i++) {
|
||||
CGImageRef image = CGImageSourceCreateImageAtIndex(source, i, NULL);
|
||||
if (!image) {
|
||||
continue;
|
||||
}
|
||||
|
||||
duration += [self sd_frameDurationAtIndex:i source:source];
|
||||
|
||||
|
|
Loading…
Reference in New Issue