Don't append encoding data when it's null. It throws off the decoder on the box.
This commit is contained in:
@@ -438,7 +438,9 @@ class WTVLzpf {
|
|||||||
this.EncodeLiteral(0x08, (this.checksum << 0x18) & 0xFFFFFFFF);
|
this.EncodeLiteral(0x08, (this.checksum << 0x18) & 0xFFFFFFFF);
|
||||||
|
|
||||||
// End
|
// End
|
||||||
|
if (this.current_literal != 0x00) {
|
||||||
this.AddByte((this.current_literal >>> 0x18) & 0xFF);
|
this.AddByte((this.current_literal >>> 0x18) & 0xFF);
|
||||||
|
}
|
||||||
this.AddByte(0x20);
|
this.AddByte(0x20);
|
||||||
|
|
||||||
return Buffer.from(this.encoded_data);
|
return Buffer.from(this.encoded_data);
|
||||||
|
|||||||
Reference in New Issue
Block a user