yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

zstd: Use ZSTD_getFrameContentSize instead of ZSTD_getDecompressedSize

This commit is contained in:
Morph 2023-03-23 22:16:05 -04:00
parent 877e8991c7
commit abe2ad7aac
1 changed files with 1 additions and 1 deletions

View File

@ -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) { std::vector<u8> DecompressDataZSTD(std::span<const u8> compressed) {
const std::size_t decompressed_size = const std::size_t decompressed_size =
ZSTD_getDecompressedSize(compressed.data(), compressed.size()); ZSTD_getFrameContentSize(compressed.data(), compressed.size());
std::vector<u8> decompressed(decompressed_size); std::vector<u8> decompressed(decompressed_size);
const std::size_t uncompressed_result_size = ZSTD_decompress( const std::size_t uncompressed_result_size = ZSTD_decompress(