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

Set TIFF default grascale palette opaque.

This commit is contained in:
Carl Eugen Hoyos 2011-11-12 20:19:51 +01:00
parent fd09cd08c0
commit 3b5733bcf9

View File

@ -313,7 +313,7 @@ static int init_image(TiffContext *s)
/* make default grayscale pal */ /* make default grayscale pal */
pal = (uint32_t *) s->picture.data[1]; pal = (uint32_t *) s->picture.data[1];
for (i = 0; i < 1<<s->bpp; i++) 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; return 0;