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

It breaks some opaque samples.

This reverts commit d4fdaafdb7.
pull/8/head
Carl Eugen Hoyos 12 years ago
parent 0fb79f30db
commit a3a22c2178
  1. 3
      libavcodec/gifdec.c

@ -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++) {
if (*idx != s->transparent_color_index)
*px = pal[*idx];
if (*idx == s->transparent_color_index)
*px &= 0xFFFFFF;
}
if (is_interleaved) {

Loading…
Cancel
Save