wangjwchn / AImage

An animated gif & apng engine for iOS in Swift. Have a great performance on memory and cpu usage.
995 stars 93 forks source link

Add condition to constructor to fix processing unsupported Data #33

Closed Alex601t closed 6 years ago

Alex601t commented 6 years ago

Hey! I see fatal issues from @chanonly123 (https://github.com/wangjwchn/AImage/issues/30). There is happened when we set unsupported data content to the AImage constructor like mp4 :)

So, I add condition for checking the number of images in the image source.

wangjwchn commented 6 years ago

@Alex601t Thanks! :)