Adding check to make sure codelength Huffman table was actually created successfully.

This commit is contained in:
Rich Geldreich
2019-05-09 22:14:23 -07:00
parent ce9aeb9cc8
commit 878f523522

View File

@@ -426,6 +426,9 @@ namespace basist
if (!code_length_table.init(basisu::cHuffmanTotalCodelengthCodes, code_length_code_sizes))
return false;
if (!code_length_table.is_valid())
return false;
basisu::uint8_vec code_sizes(total_used_syms);
uint32_t cur = 0;