summaryrefslogtreecommitdiffstats
path: root/third_party/libwebp/enc/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libwebp/enc/tree.c')
-rw-r--r--third_party/libwebp/enc/tree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/third_party/libwebp/enc/tree.c b/third_party/libwebp/enc/tree.c
index 06c1d57..8b25e5e 100644
--- a/third_party/libwebp/enc/tree.c
+++ b/third_party/libwebp/enc/tree.c
@@ -158,9 +158,12 @@ const uint8_t
void VP8DefaultProbas(VP8Encoder* const enc) {
VP8Proba* const probas = &enc->proba_;
+ probas->use_skip_proba_ = 0;
memset(probas->segments_, 255u, sizeof(probas->segments_));
memcpy(probas->coeffs_, VP8CoeffsProba0, sizeof(VP8CoeffsProba0));
- probas->use_skip_proba_ = 0;
+ // Note: we could hard-code the level_costs_ corresponding to VP8CoeffsProba0,
+ // but that's ~11k of static data. Better call VP8CalculateLevelCosts() later.
+ probas->dirty_ = 1;
}
// Paragraph 11.5. 900bytes.