forked from suyu/suyu
zstd: Use ZSTD_getFrameContentSize instead of ZSTD_getDecompressedSize
This commit is contained in:
parent
877e8991c7
commit
abe2ad7aac
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ std::vector<u8> CompressDataZSTDDefault(const u8* source, std::size_t source_siz
|
|||
|
||||
std::vector<u8> DecompressDataZSTD(std::span<const u8> compressed) {
|
||||
const std::size_t decompressed_size =
|
||||
ZSTD_getDecompressedSize(compressed.data(), compressed.size());
|
||||
ZSTD_getFrameContentSize(compressed.data(), compressed.size());
|
||||
std::vector<u8> decompressed(decompressed_size);
|
||||
|
||||
const std::size_t uncompressed_result_size = ZSTD_decompress(
|
||||
|
|
Loading…
Reference in a new issue