mirror of
https://github.com/google/brotli.git
synced 2024-11-21 11:10:04 +00:00
Update c/enc/encode.c
Co-authored-by: Eugene Kliuchnikov <eustas@google.com>
This commit is contained in:
parent
782aadd0ff
commit
8c6d25f7f8
@ -441,7 +441,7 @@ static BROTLI_BOOL ShouldCompress(
|
||||
static const double kMinEntropy = 7.92;
|
||||
const double bit_cost_threshold =
|
||||
(double)bytes * kMinEntropy * invKSampleRate;
|
||||
size_t t = (bytes + kSampleRate - 1) * invKSampleRate;
|
||||
size_t t = (double)(bytes + kSampleRate - 1) * invKSampleRate;
|
||||
uint32_t pos = (uint32_t)last_flush_pos;
|
||||
size_t i;
|
||||
for (i = 0; i < t; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user