dep/libchdr: Rebase to upstream 2a1119c

This commit is contained in:
Stenzek
2024-02-18 15:14:07 +09:00
parent a1da72202b
commit 0e6a9f637b
6 changed files with 304 additions and 32 deletions

View File

@ -295,6 +295,9 @@ enum huffman_error huffman_import_tree_huffman(struct huffman_decoder* decoder,
}
}
/* make sure we free the local huffman decoder */
delete_huffman_decoder(smallhuff);
/* make sure we ended up with the right number */
if (curcode != decoder->numcodes)
return HUFFERR_INVALID_DATA;