summaryrefslogtreecommitdiffstats
path: root/thirdparty/libwebp/src/enc/vp8l_enc.c
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-03-04 13:02:20 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-03-04 13:13:33 +0100
commit93f6a065f8e0e083582890a245b7dcc3cd8c7ef6 (patch)
tree9682b2cf1b763dc9f62ab6d4fdbf75a007afe22e /thirdparty/libwebp/src/enc/vp8l_enc.c
parent2bc981948d254f45a0268cfc26eb0010f00b984c (diff)
downloadredot-engine-93f6a065f8e0e083582890a245b7dcc3cd8c7ef6.tar.gz
libwebp: Sync with upstream 1.0.2
Diffstat (limited to 'thirdparty/libwebp/src/enc/vp8l_enc.c')
-rw-r--r--thirdparty/libwebp/src/enc/vp8l_enc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thirdparty/libwebp/src/enc/vp8l_enc.c b/thirdparty/libwebp/src/enc/vp8l_enc.c
index 2713edcd95..2efd403f77 100644
--- a/thirdparty/libwebp/src/enc/vp8l_enc.c
+++ b/thirdparty/libwebp/src/enc/vp8l_enc.c
@@ -462,6 +462,7 @@ static int GetHuffBitLengthsAndCodes(
for (i = 0; i < histogram_image_size; ++i) {
const VP8LHistogram* const histo = histogram_image->histograms[i];
HuffmanTreeCode* const codes = &huffman_codes[5 * i];
+ assert(histo != NULL);
for (k = 0; k < 5; ++k) {
const int num_symbols =
(k == 0) ? VP8LHistogramNumCodes(histo->palette_code_bits_) :