mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-06-08 08:33:53 +00:00
Adding check to make sure codelength Huffman table was actually created successfully.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user