mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 15:26:12 +00:00
A VP8 key frame stores its first partition's size in 19 bits (RFC 6386 section 9.1). The encoder writes 524,287 for a larger partition too, and a decoder then reads the token partition from the wrong offset. A lossy WebP whose size field is at that limit now fails with an error that suggests a lower resolution or Lossless, instead of writing a file that does not decode.