summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.c
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2022-07-15 14:11:26 (GMT)
committerYann Collet <cyan@fb.com>2022-07-15 17:30:53 (GMT)
commit6784e78e006329ba67eb799a1cb94dd7267a9241 (patch)
tree96330ac7e1f25829df98330cab8cc57eca44f35f /lib/lz4frame.c
parent0c620ce212d92d009f47293ea5e0b676c3380fbb (diff)
downloadlz4-6784e78e006329ba67eb799a1cb94dd7267a9241.zip
lz4-6784e78e006329ba67eb799a1cb94dd7267a9241.tar.gz
lz4-6784e78e006329ba67eb799a1cb94dd7267a9241.tar.bz2
support skippable frames within pipe
fix #977 fseek() doesn't work for pipe, switch to "read and forget" mode in such case.
Diffstat (limited to 'lib/lz4frame.c')
-rw-r--r--lib/lz4frame.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c
index 5373083..0516f1f 100644
--- a/lib/lz4frame.c
+++ b/lib/lz4frame.c
@@ -206,8 +206,6 @@ static void LZ4F_writeLE64 (void* dst, U64 value64)
#define _4BITS 0x0F
#define _8BITS 0xFF
-#define LZ4F_MAGIC_SKIPPABLE_START 0x184D2A50U
-#define LZ4F_MAGICNUMBER 0x184D2204U
#define LZ4F_BLOCKUNCOMPRESSED_FLAG 0x80000000U
#define LZ4F_BLOCKSIZEID_DEFAULT LZ4F_max64KB