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

This commit is contained in:
Dmitry Timoshkov 2012-09-14 15:07:34 +09:00 committed by Alexandre Julliard
parent 8ec1008fc7
commit fd0cbf9ebe
1 changed files with 1 additions and 1 deletions

View File

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