1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Do not ignore full transparency when writing png palette.

This reverts r6689, "Make PNG produce correct 8-bit pictures".
This commit is contained in:
Carl Eugen Hoyos 2011-12-07 11:31:27 +01:00
parent 901af94b69
commit a99dbe014d

View File

@ -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);