diff --git a/deft4j-base/src/main/java/com/github/NeRdTheNed/deft4j/deflate/DeflateBlockHuffman.java b/deft4j-base/src/main/java/com/github/NeRdTheNed/deft4j/deflate/DeflateBlockHuffman.java index 5db0c43..fee40e2 100644 --- a/deft4j-base/src/main/java/com/github/NeRdTheNed/deft4j/deflate/DeflateBlockHuffman.java +++ b/deft4j-base/src/main/java/com/github/NeRdTheNed/deft4j/deflate/DeflateBlockHuffman.java @@ -1257,11 +1257,10 @@ public DeflateBlock merge(DeflateBlock append) { final LitLen eob = merged.litlens.remove(merged.litlens.size() - 1); merged.litlens.addAll(otherFixed.litlens); merged.sizeBits -= merged.litlenSizeBits; - - for (final LitLen litlenThis : otherFixed.litlens) { + /*for (final LitLen litlenThis : otherFixed.litlens) { merged.litlenSizeBits += getLitLenSize(litlenThis, merged.litlenDec, merged.distDec); - } - + }*/ + merged.litlenSizeBits += otherFixed.litlenSizeBits; merged.litlenSizeBits -= getLitLenSize(eob, merged.litlenDec, merged.distDec); merged.sizeBits += merged.litlenSizeBits; return merged;