Commit fd0cbf9e authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

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

parent 8ec1008f
......@@ -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 */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment