Waitsnake / AnimatedGif

A screensaver for Mac OSX / macOS that plays animated GIFs and APNGs
MIT License
213 stars 31 forks source link

Handle GIF's that have no delay time in frame 0 #27

Closed Waitsnake closed 7 years ago

Waitsnake commented 7 years ago

AnimatedGif only uses a static delay time of first frame and can not handle variable delay times (see #26).

Unfortunately I saw some rare GIF files, where the first frame had no delay time at all (delay time = 0ms -> infinity fps). In some cases often the later frames include a valid delay time.

But since AnimatedGif only supports a static delay time the GIF was running way too fast.

Waitsnake commented 7 years ago

As a workaround in case of a delay time of 0ms (infinity fps) a default value of 15 fps will be used.