From 15431d4fd8de67a03af4ee9cc8e774e1750e9da2 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 14 Sep 2020 20:25:10 +0200 Subject: Add zstd stream compressor implementation to libfstream Signed-off-by: David Oberhollenzer --- lib/fstream/uncompress/autodetect.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/fstream/uncompress/autodetect.c') 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, -- cgit v1.2.3