Commit a3a22c21 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Revert "Always write all colours for animated gif files, including transparent ones."

It breaks some opaque samples.

This reverts commit d4fdaafd.
parent 0fb79f30
......@@ -241,9 +241,8 @@ static int gif_read_image(GifState *s)
pr = ptr + width;
for (px = ptr, idx = s->idx_line; px < pr; px++, idx++) {
*px = pal[*idx];
if (*idx == s->transparent_color_index)
*px &= 0xFFFFFF;
if (*idx != s->transparent_color_index)
*px = pal[*idx];
}
if (is_interleaved) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment