mirror of
https://github.com/google/brotli.git
synced 2025-01-16 19:24:12 +00:00
Limit the max input meta-block size to 16MB.
This commit is contained in:
parent
1428d54178
commit
e377e65f11
@ -30,7 +30,7 @@ namespace brotli {
|
|||||||
static const int kMaxWindowBits = 24;
|
static const int kMaxWindowBits = 24;
|
||||||
static const int kMinWindowBits = 16;
|
static const int kMinWindowBits = 16;
|
||||||
static const int kMinInputBlockBits = 16;
|
static const int kMinInputBlockBits = 16;
|
||||||
static const int kMaxInputBlockBits = 28;
|
static const int kMaxInputBlockBits = 24;
|
||||||
|
|
||||||
struct BrotliParams {
|
struct BrotliParams {
|
||||||
BrotliParams()
|
BrotliParams()
|
||||||
@ -52,7 +52,7 @@ struct BrotliParams {
|
|||||||
int quality;
|
int quality;
|
||||||
// Base 2 logarithm of the sliding window size. Range is 16 to 24.
|
// Base 2 logarithm of the sliding window size. Range is 16 to 24.
|
||||||
int lgwin;
|
int lgwin;
|
||||||
// Base 2 logarithm of the maximum input block size. Range is 16 to 28.
|
// Base 2 logarithm of the maximum input block size. Range is 16 to 24.
|
||||||
// If set to 0, the value will be set based on the quality.
|
// If set to 0, the value will be set based on the quality.
|
||||||
int lgblock;
|
int lgblock;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user