Fixed typo in LzmaFrameEncoder constructor
Motivation: A discovered typo in LzmaFrameEncoder constructor when we check `lc + lp` for better compatibility. Modifications: Changed `lc + pb` to `lc + lp`. Result: Correct check of `lc + lp` value.
This commit is contained in:
parent
f76a6f40d4
commit
8988b3f4c0
@ -144,7 +144,7 @@ public class LzmaFrameEncoder extends MessageToByteEncoder<ByteBuf> {
|
||||
if (pb < 0 || pb > 4) {
|
||||
throw new IllegalArgumentException("pb: " + pb + " (expected: 0-4)");
|
||||
}
|
||||
if (lc + pb > 4) {
|
||||
if (lc + lp > 4) {
|
||||
if (!warningLogged) {
|
||||
logger.warn("The latest versions of LZMA libraries (for example, XZ Utils) " +
|
||||
"has an additional requirement: lc + lp <= 4. Data which don't follow " +
|
||||
|
Loading…
Reference in New Issue
Block a user