X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Ftiff.c;h=1060a4403e26e0e225c4367cc71b60d0a71362cb;hb=484e59a0a0329c4005ddacd05051925345f4362f;hp=8d0bb98689d55c24ac63583b1310e88e14618602;hpb=e60779b18cefd49443bb237cc9fc68795b3b9dfc;p=ffmpeg diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 8d0bb98689d..1060a4403e2 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;