mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
add assert(tokens)
Change-Id: I952a5cd15ff0a80cff349293e6403357cbc7bd8d
This commit is contained in:
parent
ac8e5e42d1
commit
432399472f
@ -242,6 +242,7 @@ int VP8LCreateCompressedHuffmanTree(const uint8_t* const depth,
|
||||
HuffmanTreeToken* const ending_token = tokens + max_tokens;
|
||||
int prev_value = 8; // 8 is the initial value for rle.
|
||||
int i = 0;
|
||||
assert(tokens != NULL);
|
||||
while (i < depth_size) {
|
||||
const int value = depth[i];
|
||||
int k = i + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user