Re: [PATCH v2 0/3] MR3344: windowscodecs: support GIF with no color table
17 Jul
2023
17 Jul
'23
3:52 p.m.
On Mon Jul 17 20:07:36 2023 +0000, Esme Povirk wrote:
If the IWICPalette has only 4 colors in it, it can be assumed to only return 4 colors. If for some reason we need a test for palettes writing out of bounds (which I don't think we do), that should go in palette.c. Since 256 was hard-coded in `GifDecoder_CopyPalette` for the no-GCT-present case (256 was correct for the test case), I had thought it might be worth-while to expand the testing. However, I suppose the `IWICPalette_GetColorCount` check should be sufficient.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3344#note_39204
887
Age (days ago)
887
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jeffrey Smith (@whydoubt)