diff --git a/c/enc/encode.c b/c/enc/encode.c index a8ac09a..1d22525 100644 --- a/c/enc/encode.c +++ b/c/enc/encode.c @@ -1829,6 +1829,7 @@ size_t BrotliEncoderEstimatePeakMemoryUsage(int quality, int lgwin, params.quality = quality; params.lgwin = lgwin; params.size_hint = input_size; + params.large_window = lgwin > BROTLI_MAX_WINDOW_BITS; SanitizeParams(¶ms); params.lgblock = ComputeLgBlock(¶ms); ChooseHasher(¶ms, ¶ms.hasher);