Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ios
/
yh_sdwebimage
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
sukeban
2016-01-25 14:21:17 -0800
Commit
3b039d5910df77722eab6e44c2a2e7fd8f81f0b2
1 parent
64f62108
Protect against malformed image
Don’t add nil to the array, just skip the frame.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
SDWebImage/UIImage+GIF.m
SDWebImage/UIImage+GIF.m
View file @
3b039d5
...
...
@@ -32,6 +32,8 @@
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
CGImageRef
image
=
CGImageSourceCreateImageAtIndex
(
source
,
i
,
NULL
);
if
(
!
image
)
continue
;
duration
+=
[
self
sd_frameDurationAtIndex
:
i
source
:
source
];
...
...
Please
register
or
login
to post a comment