From abe2ad7aacd50b82dfdd1c1fdbe8258e1872d1aa Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Thu, 23 Mar 2023 22:16:05 -0400 Subject: [PATCH] zstd: Use ZSTD_getFrameContentSize instead of ZSTD_getDecompressedSize --- src/common/zstd_compression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/zstd_compression.cpp b/src/common/zstd_compression.cpp index b71a41b78c..cb6ec171b5 100644 --- a/src/common/zstd_compression.cpp +++ b/src/common/zstd_compression.cpp @@ -33,7 +33,7 @@ std::vector CompressDataZSTDDefault(const u8* source, std::size_t source_siz std::vector DecompressDataZSTD(std::span compressed) { const std::size_t decompressed_size = - ZSTD_getDecompressedSize(compressed.data(), compressed.size()); + ZSTD_getFrameContentSize(compressed.data(), compressed.size()); std::vector decompressed(decompressed_size); const std::size_t uncompressed_result_size = ZSTD_decompress(