[3/4] windowscodecs: Fix calculation of GIF local color table size from decoder data.

Dmitry Timoshkov dmitry at baikal.ru
Fri Sep 14 01:07:34 CDT 2012


---
 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 4414f36..a814c1a 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 */
     }
 
-- 
1.7.11.5




More information about the wine-patches mailing list