summaryrefslogtreecommitdiff
path: root/thirdparty/libwebp/src/enc/backward_references_enc.c
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-12-10 14:58:13 +0100
committerGitHub <noreply@github.com>2018-12-10 14:58:13 +0100
commitfa024537a39c24bf9fb2e24063acee0daf63dfc1 (patch)
tree759ef4154a16f572b0782516d641fbb993ff9400 /thirdparty/libwebp/src/enc/backward_references_enc.c
parentca06e656bec5129cc0fc45f83b310976adb752e3 (diff)
parentd4133ac8440321f2ae2e26fb317871bd847b35eb (diff)
Merge pull request #24258 from volzhs/libwebp-1.0.1
Update libwebp to 1.0.1
Diffstat (limited to 'thirdparty/libwebp/src/enc/backward_references_enc.c')
-rw-r--r--thirdparty/libwebp/src/enc/backward_references_enc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thirdparty/libwebp/src/enc/backward_references_enc.c b/thirdparty/libwebp/src/enc/backward_references_enc.c
index 39230188b9..3ab7b0ac7d 100644
--- a/thirdparty/libwebp/src/enc/backward_references_enc.c
+++ b/thirdparty/libwebp/src/enc/backward_references_enc.c
@@ -715,6 +715,7 @@ static int CalculateBestCacheSize(const uint32_t* argb, int quality,
for (i = 0; i <= cache_bits_max; ++i) {
histos[i] = VP8LAllocateHistogram(i);
if (histos[i] == NULL) goto Error;
+ VP8LHistogramInit(histos[i], i, /*init_arrays=*/ 1);
if (i == 0) continue;
cc_init[i] = VP8LColorCacheInit(&hashers[i], i);
if (!cc_init[i]) goto Error;