Dmitry Timoshkov : windowscodecs: Fix calculation of GIF local color table size from decoder data.

Alexandre Julliard julliard at winehq.org
Fri Sep 14 10:54:21 CDT 2012


Module: wine
Branch: master
Commit: fd0cbf9ebee253fe0511771fe0be1836c6b1e285
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fd0cbf9ebee253fe0511771fe0be1836c6b1e285

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Fri Sep 14 15:07:34 2012 +0900

windowscodecs: Fix calculation of GIF local color table size from decoder data.

---

 dlls/windowscodecs/gifformat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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 */
     }
 




More information about the wine-cvs mailing list