Closed Bug 217025 Opened 22 years ago Closed 22 years ago

GIF decoder cleanup

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: tor, Assigned: tor)

Details

Attachments

(2 files)

Late spring cleaning of the GIF decoder - removing unused state structure members, function prototypes, and a header file.
Attached patch cleanupSplinter Review
Attachment #130243 - Flags: superreview?(darin)
Attachment #130243 - Flags: review?(pavlov)
Attachment #130243 - Flags: review?(pavlov) → review+
Attachment #130243 - Flags: superreview?(darin) → superreview+
Checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment on attachment 130243 [details] [diff] [review] cleanup >Index: GIF2.cpp >@@ -930,11 +918,9 @@ > gs->local_colormap_size = num_colors; > > /* Switch to the new local palette after it loads */ >- gs->is_local_colormap_defined = PR_TRUE; > GETN(gs->local_colormap_size * 3, gif_image_colormap); > } else { > /* Switch back to the global palette */ >- gs->is_local_colormap_defined = PR_FALSE; > GETN(1, gif_lzw_start); > } Hmm, you might want to have cleaned up those comments, too, while you were at it.
Thanks for bringing that to my attention - upon a review of the gif specification and the code, it turns out we weren't properly handling the case where we're supposed to switch back to the global colormap after finishing an image block with a local colormap.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #131241 - Flags: superreview?(darin)
Attachment #131241 - Flags: review?(pavlov)
Yep, I was wondering about that specific change.
Attachment #131241 - Flags: review?(pavlov) → review+
Attachment #131241 - Flags: superreview?(darin) → superreview+
Checked in.
Status: REOPENED → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: