tiff: set palette in the context when specified in TIFF_PAL tag
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 23 May 2011 23:17:25 +0000 (01:17 +0200)
committerDiego Biurrun <diego@biurrun.de>
Tue, 24 May 2011 17:33:40 +0000 (19:33 +0200)
commit7ca5338b49aa9967c9b18503490ca656e3bd6c5d
tree65fe7cb970d98cea9d3177441b2252784a408eb4
parent4515f9b58a51eb0af81c1ed1fd99889fcdc5ae91
tiff: set palette in the context when specified in TIFF_PAL tag

Since image initialization was moved after tag parsing, the
palette needs to be specified in the context and then copied
to the allocated image in init_image().

Fixes a regression with TIFF images that have palette data,
trac issue #230, file Test_Flate_8bpp.tif.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavcodec/tiff.c