Default compression level only when compressing.
This commit is contained in:
parent
fc65111bae
commit
7685adefb2
1 changed files with 1 additions and 1 deletions
|
@ -2748,7 +2748,7 @@ init_pc_context(pc_ctx_t *pctx, int argc, char *argv[])
|
||||||
return (2);
|
return (2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pctx->level == -1) {
|
if (pctx->level == -1 && pctx->do_compress) {
|
||||||
if (memcmp(pctx->algo, "lz4", 3) == 0) {
|
if (memcmp(pctx->algo, "lz4", 3) == 0) {
|
||||||
pctx->level = 1;
|
pctx->level = 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue