diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/handlers/image/gif.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/content/handlers/image/gif.c b/content/handlers/image/gif.c index fa343fbac..fa09f401c 100644 --- a/content/handlers/image/gif.c +++ b/content/handlers/image/gif.c @@ -154,8 +154,10 @@ static void nsgif_animate(void *p) /* Continue animating if we should */ if (gif->gif->loop_count >= 0) { delay = gif->gif->frames[gif->current_frame].frame_delay; - if (delay < nsoption_int(minimum_gif_delay)) - delay = nsoption_int(minimum_gif_delay); + if (delay <= 1) { + /* Assuming too fast to be intended, set default. */ + delay = 10; + } guit->misc->schedule(delay * 10, nsgif_animate, gif); } |