Index: third_party/libwebp/enc/tree.c |
diff --git a/third_party/libwebp/enc/tree.c b/third_party/libwebp/enc/tree.c |
index 06c1d579ce0d00e88e9f8919d7169cc5aa95c221..8b25e5e488a8d0583f162d24601e39410d268526 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. |