From fd0cbf9ebee253fe0511771fe0be1836c6b1e285 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Fri, 14 Sep 2012 15:07:34 +0900 Subject: [PATCH] windowscodecs: Fix calculation of GIF local color table size from decoder data. --- dlls/windowscodecs/gifformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/windowscodecs/gifformat.c b/dlls/windowscodecs/gifformat.c index 4414f3691af..a814c1a7e62 100644 --- a/dlls/windowscodecs/gifformat.c +++ b/dlls/windowscodecs/gifformat.c @@ -707,7 +707,7 @@ static HRESULT create_IMD_metadata_reader(GifFrameDecode *This, IWICMetadataRead /* local_color_table_flag */ IMD_data.packed |= 1 << 7; /* local_color_table_size */ - IMD_data.packed |= This->frame->ImageDesc.ColorMap->BitsPerPixel; + IMD_data.packed |= This->frame->ImageDesc.ColorMap->BitsPerPixel - 1; /* FIXME: sort_flag */ }