1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 05:47:34 +00:00

WebP/Lossy: Clamp negative quantization indices to zero

The spec doesn't talk about this happening in the text, but
`dequant_init()` in 20.4 stores `q` in an int and clamps that
to 0 later.
This commit is contained in:
Nico Weber 2023-06-01 09:09:24 -04:00 committed by Andreas Kling
parent c2ec97dd79
commit 661b2d394d
3 changed files with 24 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB