mirror of
https://github.com/google/brotli.git
synced 2024-11-21 19:20:09 +00:00
Fix BrotliEncoderEstimatePeakMemoryUsage (#1002)
Fixes https://github.com/google/brotli/issues/1001
This commit is contained in:
parent
e3ea91d5c9
commit
71fe6cac06
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user