Closed
Bug 409878
Opened 18 years ago
Closed 18 years ago
Garbage displayed for part of bluebar.gif animation
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
VERIFIED
FIXED
mozilla1.9beta3
People
(Reporter: dopefishjustin, Assigned: alfredkayser)
References
()
Details
Attachments
(1 file, 1 obsolete file)
|
3.14 KB,
patch
|
pavlov
:
review+
pavlov
:
approval1.9+
|
Details | Diff | Splinter Review |
The animated GIF at http://www.alexchiu.com/cell/bluebar.gif displays garbage for part of its duration using current Minefield nightlies. This does not occur in Firefox 2 or IE7. Saving the file to the local disk and opening from there makes no difference. Microsoft GIF Animator gives an error that the file may be corrupt when I try to open it, so that may be related to the problem.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b3pre) Gecko/2007122605 Minefield/3.0b3pre ID:2007122605
Comment 1•18 years ago
|
||
Is caused by Bug 366465.
| Assignee | ||
Comment 2•18 years ago
|
||
Interesting, another corrupt GIF that is showing corrupt display...
I remember something about garbage in = garbage out.
But apparently the old code was less sensitive to garbage like this.
Assignee: nobody → alfredkayser
| Assignee | ||
Comment 3•18 years ago
|
||
Because the attached gif file does provide an header for the next frame, but no actual frame data, and that before (long, long ago) the frame was only allocated when actual frame data (the first row of it) was detected, we now also need to prevent adding empty frames to the imageContainer.
So, postpose 'AppendFrame' till 'EndImageFrame', so that we can skip it if there is no image data at all.
The memset is to clear any rows not set from image source data (this only applies to animation frames (so not the first one)).
Attachment #294773 -
Flags: review?(pavlov)
| Assignee | ||
Comment 4•18 years ago
|
||
Attachment #294773 -
Attachment is obsolete: true
Attachment #294787 -
Flags: review?(pavlov)
Attachment #294773 -
Flags: review?(pavlov)
| Assignee | ||
Comment 5•18 years ago
|
||
The first patch didn't pass the gifbuster test (http://webtools.mozilla.org/buster/gif-buster/gif-buster.html).
Updated•18 years ago
|
Attachment #294787 -
Flags: review?(pavlov)
Attachment #294787 -
Flags: review+
Attachment #294787 -
Flags: approval1.9+
Updated•18 years ago
|
Keywords: checkin-needed
| Assignee | ||
Updated•18 years ago
|
Attachment #294787 -
Flags: superreview?(tor)
Comment 6•18 years ago
|
||
Comment on attachment 294787 [details] [diff] [review]
V2: Only postpone for animation frames to dynamic update of the first frame working
stuart's review is enough here. I'll land this shortly.
Attachment #294787 -
Flags: superreview?(tor)
Comment 7•18 years ago
|
||
Checking in modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp;
/cvsroot/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp,v <-- nsGIFDecoder2.cpp
new revision: 1.91; previous revision: 1.90
done
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: checkin-needed
OS: Windows XP → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M11
| Assignee | ||
Comment 8•18 years ago
|
||
Ok, thanks!
OS: All → Windows XP
Hardware: All → PC
Target Milestone: mozilla1.9 M11 → ---
Updated•18 years ago
|
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → mozilla1.9 M11
Comment 9•18 years ago
|
||
This is a longshot, but is there any chance this bug could have caused bug 412294 or bug 412863?
| Assignee | ||
Comment 10•18 years ago
|
||
See bug 411874 for a patch for the problem caused by this bug.
| Assignee | ||
Updated•17 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•