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

Do not ignore full transparency when writing png palette.

This reverts r6689, "Make PNG produce correct 8-bit pictures".
parent 901af94b
......@@ -336,7 +336,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
for(i = 0; i < 256; i++) {
v = palette[i];
alpha = v >> 24;
if (alpha && alpha != 0xff)
if (alpha != 0xff)
has_alpha = 1;
*alpha_ptr++ = alpha;
bytestream_put_be24(&ptr, v);
......
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