[FFmpeg-cvslog] Set TIFF default grascale palette opaque.
Carl Eugen Hoyos
git at videolan.org
Sat Nov 12 20:57:03 CET 2011
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Nov 12 20:19:51 2011 +0100| [3b5733bcf992158d2594d73df672a0c9ca2d6b44] | committer: Carl Eugen Hoyos
Set TIFF default grascale palette opaque.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3b5733bcf992158d2594d73df672a0c9ca2d6b44
---
libavcodec/tiff.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 8d0bb98..1060a44 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;
More information about the ffmpeg-cvslog
mailing list