diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-03-24 15:53:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-24 15:53:30 +0100 |
commit | cfb96720930f916ccb96d0b39fbb6a0d2b804c30 (patch) | |
tree | a5c92d35eaaa90f898fc81e1cc47bc372c036571 /src/common/zstd_compression.cpp | |
parent | Merge pull request #9981 from german77/nfp_connect (diff) | |
parent | zstd: Use ZSTD_getFrameContentSize instead of ZSTD_getDecompressedSize (diff) | |
download | yuzu-cfb96720930f916ccb96d0b39fbb6a0d2b804c30.tar yuzu-cfb96720930f916ccb96d0b39fbb6a0d2b804c30.tar.gz yuzu-cfb96720930f916ccb96d0b39fbb6a0d2b804c30.tar.bz2 yuzu-cfb96720930f916ccb96d0b39fbb6a0d2b804c30.tar.lz yuzu-cfb96720930f916ccb96d0b39fbb6a0d2b804c30.tar.xz yuzu-cfb96720930f916ccb96d0b39fbb6a0d2b804c30.tar.zst yuzu-cfb96720930f916ccb96d0b39fbb6a0d2b804c30.zip |
Diffstat (limited to 'src/common/zstd_compression.cpp')
-rw-r--r-- | src/common/zstd_compression.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/zstd_compression.cpp b/src/common/zstd_compression.cpp index b71a41b78..cb6ec171b 100644 --- a/src/common/zstd_compression.cpp +++ b/src/common/zstd_compression.cpp @@ -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( |