Fix off by one error in color table array

This commit is contained in:
Edoardo Lolletti 2025-08-19 19:35:13 +02:00 committed by GitHub
parent 6edcde25c3
commit 3cf702f8f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ struct Gif {
} __attribute__ ((__packed__)) header;
static_assert(sizeof(Header) == 13);
std::array<uint8_t, 255 * 3> colorTable;
std::array<uint8_t, 256 * 3> colorTable;
size_t numColors;
struct Frame {