mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Re-instantiate the lzo compresses test for zpaq compression.
This commit is contained in:
parent
8b680e72ac
commit
77f6965f25
7
stream.c
7
stream.c
|
|
@ -177,8 +177,11 @@ static int lzo_compresses(rzip_control *control, uchar *s_buf, i64 s_len);
|
|||
|
||||
static int zpaq_compress_buf(rzip_control *control, struct compress_thread *cthread, long thread)
|
||||
{
|
||||
i64 c_len = 0;
|
||||
uchar *c_buf;
|
||||
i64 c_len;
|
||||
|
||||
if (!lzo_compresses(control, cthread->s_buf, cthread->s_len))
|
||||
return 0;
|
||||
|
||||
c_buf = malloc(cthread->s_len + control->page_size);
|
||||
if (!c_buf) {
|
||||
|
|
@ -186,6 +189,8 @@ static int zpaq_compress_buf(rzip_control *control, struct compress_thread *cthr
|
|||
return -1;
|
||||
}
|
||||
|
||||
c_len = 0;
|
||||
|
||||
zpaq_compress(c_buf, &c_len, cthread->s_buf, cthread->s_len, control->compression_level / 4 + 1);
|
||||
|
||||
if (unlikely(c_len >= cthread->c_len)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue