diff options
author | 2023-12-11 10:48:02 +1100 | |
---|---|---|
committer | 2023-12-11 10:48:02 +1100 | |
commit | 05e69b43e9770e16c4bf1c6ca3e585e64c3f6ff9 (patch) | |
tree | 00ff2118ddc01455ee55785283a2fcfb9bfaf77e /src/lib/util/chd.cpp | |
parent | 1a4287925e3982e2f782dee6f62b198984b839de (diff) |
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.
Diffstat (limited to 'src/lib/util/chd.cpp')
-rw-r--r-- | src/lib/util/chd.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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 }; |