mirror of
https://github.com/google/brotli.git
synced 2024-11-24 04:20:16 +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;
|
static const double kMinEntropy = 7.92;
|
||||||
const double bit_cost_threshold =
|
const double bit_cost_threshold =
|
||||||
(double)bytes * kMinEntropy * invKSampleRate;
|
(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;
|
uint32_t pos = (uint32_t)last_flush_pos;
|
||||||
size_t i;
|
size_t i;
|
||||||
for (i = 0; i < t; i++) {
|
for (i = 0; i < t; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user