diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-12-07 11:31:27 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-12-07 11:31:27 +0100 |
commit | a99dbe014dbd01b227f97e7d7f0f72b3ae4f9be0 (patch) | |
tree | 3ed1d59f105371fbbf53e2ca43bb18df9ec286e4 /libavcodec | |
parent | 901af94b6976c05d7c092024c1dcf891ab3be66a (diff) | |
download | ffmpeg-a99dbe014dbd01b227f97e7d7f0f72b3ae4f9be0.tar.gz |
Do not ignore full transparency when writing png palette.
This reverts r6689, "Make PNG produce correct 8-bit pictures".
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/pngenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index 29f4e1a0df..b35402eddf 100644 --- a/libavcodec/pngenc.c +++ b/libavcodec/pngenc.c @@ -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); |