summaryrefslogtreecommitdiff
path: root/lib/fstream/uncompress/autodetect.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-09-14 20:25:10 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-09-16 09:34:35 +0200
commit15431d4fd8de67a03af4ee9cc8e774e1750e9da2 (patch)
treef5386db24f3901e86d3aaae10042d4f9181a6b32 /lib/fstream/uncompress/autodetect.c
parent76b06f71078e2eea7def3d1c15cdb103dec785ed (diff)
Add zstd stream compressor implementation to libfstream
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstream/uncompress/autodetect.c')
-rw-r--r--lib/fstream/uncompress/autodetect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fstream/uncompress/autodetect.c b/lib/fstream/uncompress/autodetect.c
index 4ffe078..b788518 100644
--- a/lib/fstream/uncompress/autodetect.c
+++ b/lib/fstream/uncompress/autodetect.c
@@ -13,6 +13,7 @@ static const struct {
} magic[] = {
{ FSTREAM_COMPRESSOR_GZIP, (const sqfs_u8 *)"\x1F\x8B\x08", 3 },
{ FSTREAM_COMPRESSOR_XZ, (const sqfs_u8 *)("\xFD" "7zXZ"), 6 },
+ { FSTREAM_COMPRESSOR_ZSTD, (const sqfs_u8 *)"\x28\xB5\x2F\xFD", 4 },
};
int istream_detect_compressor(istream_t *strm,