diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-11-12 20:19:51 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-11-12 20:19:51 +0100 |
commit | 3b5733bcf992158d2594d73df672a0c9ca2d6b44 (patch) | |
tree | 8c959895bbce69f2cb09fc3ca7379b2ba677a40f | |
parent | fd09cd08c0ad059ee41ccafc6836a285c1b35c45 (diff) | |
download | ffmpeg-3b5733bcf992158d2594d73df672a0c9ca2d6b44.tar.gz |
Set TIFF default grascale palette opaque.
-rw-r--r-- | libavcodec/tiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 8d0bb98689..1060a4403e 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -313,7 +313,7 @@ static int init_image(TiffContext *s) /* make default grayscale pal */ pal = (uint32_t *) s->picture.data[1]; for (i = 0; i < 1<<s->bpp; i++) - pal[i] = i * 255 / ((1<<s->bpp) - 1) * 0x010101; + pal[i] = 0xFF << 24 | i * 255 / ((1<<s->bpp) - 1) * 0x010101; } } return 0; |