From 3b5733bcf992158d2594d73df672a0c9ca2d6b44 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sat, 12 Nov 2011 20:19:51 +0100 Subject: [PATCH] Set TIFF default grascale palette opaque. --- libavcodec/tiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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<bpp; i++) - pal[i] = i * 255 / ((1<bpp) - 1) * 0x010101; + pal[i] = 0xFF << 24 | i * 255 / ((1<bpp) - 1) * 0x010101; } } return 0;