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:
parent
fd09cd08c0
commit
3b5733bcf9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user