mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
Limit the maximum size of huffman Image to 16MB.
This limit corresponds to default histo_bits=3 for images upto sizes 400x400. Any image higher than this dimension will bump up the histo_bits to 4 internally. Change-Id: Ic8ba3dcd50e9c588cbbc4a0457289086498ff4ee
This commit is contained in:
parent
f180df2afd
commit
b3923084b9
@ -27,7 +27,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#define PALETTE_KEY_RIGHT_SHIFT 22 // Key for 1K buffer.
|
||||
#define MAX_HUFF_IMAGE_SIZE (32 * 1024 * 1024)
|
||||
#define MAX_HUFF_IMAGE_SIZE (16 * 1024 * 1024)
|
||||
#define MIN_HISTO_BITS 2
|
||||
#define MAX_HISTO_BITS 9
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user