After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 414143 - GdkPixbuf's GIF loader should set invalid delay times to 100ms, not 20ms
GdkPixbuf's GIF loader should set invalid delay times to 100ms, not 20ms
Status: RESOLVED WONTFIX
Product: gdk-pixbuf
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-03-03 09:04 UTC by John Millikin
Modified: 2010-07-10 04:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Existing behaviour of Epiphany (909 bytes, patch)
2007-03-03 09:05 UTC, John Millikin
none Details | Review
Smart delay correction (1.68 KB, patch)
2007-03-03 09:06 UTC, John Millikin
none Details | Review

Description John Millikin 2007-03-03 09:04:16 UTC
Currently, when the GIF loader detects an invalid or too fast GIF delay time to 20ms. However, most other software that deals with rendering potentially invalid GIFs (such as Epiphany or Konqueror) set invalid delay times to 100ms instead. The result is that applications that use the GdkPixbufAnimation class appear to render GIFs "too fast", even though the GIF itself is at fault.

I actually think that the algorithm should set invalid times (0ms) to 100ms, and merely too short times (<20ms) to 20ms. A time of 0ms is clearly erroneous, and should be corrected. However, a very short non-zero time indicates the author of the animation intended it to be fast.

I have created two patches, one for the existing behaviour of other software, and another for the second correction system.
Comment 1 John Millikin 2007-03-03 09:05:12 UTC
Created attachment 83789 [details] [review]
Existing behaviour of Epiphany

This patch uses the existing behaviour of Epiphany, which is to set any delay < 20ms to 100ms.
Comment 2 John Millikin 2007-03-03 09:06:09 UTC
Created attachment 83790 [details] [review]
Smart delay correction

This patch uses "smart" delay correction, as outlined in the summary.
Comment 3 Matthias Clasen 2007-03-07 19:48:38 UTC
I don't think you'll be able to prove that "most other software" claim in any meaningful way. And I don't like the discontinuity of your proposed change.