add assert(tokens)

Change-Id: I952a5cd15ff0a80cff349293e6403357cbc7bd8d
This commit is contained in:
Pascal Massimino 2012-05-11 01:45:06 -07:00
parent ac8e5e42d1
commit 432399472f

View File

@ -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;