tiff: Improve grayscale support
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>
Sat, 9 Aug 2014 13:19:45 +0000 (14:19 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 10 Aug 2014 13:21:44 +0000 (15:21 +0200)
commit2597a842a0a2c7e8aa76f32733d27bf64817ae86
treeef7f6f140abe6ba7f2f16d39c70101e12af3cb7b
parentfb1ddcdc8f51b9d261ae8e9c26b91e81f7b6bf45
tiff: Improve grayscale support

Only use PAL8 if palette is present, else use GRAY8 for pixfmt.

Instead of simulating a grayscale palette, use real grayscale pixels, if no
palette is actually defined.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/tiff.c