]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed compilation error in decompression module 241/head
authorYann Collet <yann.collet.73@gmail.com>
Fri, 8 Jul 2016 17:22:16 +0000 (19:22 +0200)
committerYann Collet <yann.collet.73@gmail.com>
Fri, 8 Jul 2016 17:22:16 +0000 (19:22 +0200)
lib/decompress/zstd_decompress.c
zstd_compression_format.md

index 42acd0d6af67c32b6c4feb4988fb8303dc443046..2645342c75662886e1b978136002a2a6e62370aa 100644 (file)
@@ -1352,7 +1352,7 @@ ZSTDLIB_API size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx,
                                      const ZSTD_DDict* ddict)
 {
 #if defined(ZSTD_LEGACY_SUPPORT) && (ZSTD_LEGACY_SUPPORT==1)
-    if (ZSTD_isLegacy(src, srcSize)) return ZSTD_decompressLegacy(dst, dstCapacity, src, srcSize, ddict->dictContent, ddict->dictContentSize);
+    if (ZSTD_isLegacy(src, srcSize)) return ZSTD_decompressLegacy(dst, dstCapacity, src, srcSize, ddict->dict, ddict->dictSize);
 #endif
     return ZSTD_decompress_usingPreparedDCtx(dctx, ddict->refContext,
                                            dst, dstCapacity,
index 0db184cc341a54d8c9ea860cb72bc26aafb4f94d..9f2227406cf0935db26dd55e19a29cca64b01259 100644 (file)
@@ -1135,17 +1135,17 @@ __Header__ : 4 bytes ID, value 0xEC30A437, Little Endian format
 
 __Dict_ID__ : 4 bytes, stored in Little Endian format.
               DictID can be any value, except 0 (which means no DictID).
-              It's used by decoders to check they use the correct dictionary.
+              It's used by decoders to check if they use the correct dictionary.
 
 __Stats__ : Entropy tables, following the same format as a [compressed blocks].
             They are stored in following order :
             Huffman tables for literals, FSE table for offset,
-            FSE table for matchLenth, and finally FSE table for litLength.
-            It's then followed by 3 offset values, populating recent offsets,
-            stored in order 4-bytes little endian each, for a total of 12 bytes.
+            FSE table for matchLenth, and FSE table for litLength.
+            It's finally followed by 3 offset values, populating recent offsets,
+            stored in order, 4-bytes little endian each, for a total of 12 bytes.
 
 __Content__ : Where the actual dictionary content is.
-              Content depends on Dictionary size.
+              Content size depends on Dictionary size.
 
 [compressed blocks]: #compressed-block-format