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:
Idel Pivnitskiy 2014-09-15 18:30:00 +04:00 committed by Norman Maurer
parent f76a6f40d4
commit 8988b3f4c0

View File

@ -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 " +