From 05e69b43e9770e16c4bf1c6ca3e585e64c3f6ff9 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Mon, 11 Dec 2023 10:48:02 +1100 Subject: Added Zstandard support for zip archives and CHDs. (#11827) * 3rdparty/zstd: Added Zstandard compression library version 1.5.5. * util/unzip.cpp: Added support for Zstandard compression (method 93). * util/chdcodec.cpp: Added support for Zstandard compression. * 3rdparty/flac: Always define NDEBUG to avoid log spam. --- src/lib/util/chd.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/lib/util/chd.cpp') diff --git a/src/lib/util/chd.cpp b/src/lib/util/chd.cpp index 11f0b93eb86..194884bfd9a 100644 --- a/src/lib/util/chd.cpp +++ b/src/lib/util/chd.cpp @@ -106,12 +106,12 @@ enum // description of where a metadata entry lives within the file struct chd_file::metadata_entry { - uint64_t offset; // offset within the file of the header - uint64_t next; // offset within the file of the next header - uint64_t prev; // offset within the file of the previous header - uint32_t length; // length of the metadata - uint32_t metatag; // metadata tag - uint8_t flags; // flag bits + uint64_t offset; // offset within the file of the header + uint64_t next; // offset within the file of the next header + uint64_t prev; // offset within the file of the previous header + uint32_t length; // length of the metadata + uint32_t metatag; // metadata tag + uint8_t flags; // flag bits }; @@ -119,7 +119,7 @@ struct chd_file::metadata_entry struct chd_file::metadata_hash { - uint8_t tag[4]; // tag of the metadata in big-endian + uint8_t tag[4]; // tag of the metadata in big-endian util::sha1_t sha1; // hash data }; -- cgit v1.2.3-70-g09d2