[Webkit-unassigned] [Bug 130818] New: Sometimes, GIF pictures are not decoded correctly.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 26 20:55:32 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=130818

           Summary: Sometimes, GIF pictures are not decoded correctly.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arkuka_reg at 126.com


Created an attachment (id=227916)
 --> (https://bugs.webkit.org/attachment.cgi?id=227916&action=review)
broken GIF

Version:  webkitgtk-2.4.0. 
Platform: ubuntu 13.10
I have studied this problem for a while. Now I slow down the GIF play by inserting below code into BitmapImage::startAnimation

    if (nextFrame == 0 && m_repetitionsComplete == 0 && m_desiredFrameStartTime < time)
        m_desiredFrameStartTime = time;

+   if(m_repetitionsComplete>5)
+       m_desiredFrameStartTime = time + 2.0;

    if (!catchUpIfNecessary || time < m_desiredFrameStartTime) {

The attached screenshot can proves that some GIF frames are not decoded correctly.
The key of reproducing is to access some GIF of a slow website. 
The one used in my case is http://s1.dwstatic.com/group1/M00/E9/FC/11a75b9231c0572007e1634474f6b4a6.gif

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list