mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:57:35 +00:00
LibCompress: Use LZMA context from preexisting dictionary
This commit is contained in:
parent
c020ee8bfa
commit
fe761a4e9b
2 changed files with 59 additions and 1 deletions
|
@ -295,7 +295,7 @@ ErrorOr<u16> LzmaDecompressor::decode_symbol_using_reverse_bit_tree(size_t bit_c
|
|||
ErrorOr<void> LzmaDecompressor::decode_literal_to_output_buffer()
|
||||
{
|
||||
u8 previous_byte = 0;
|
||||
if (m_total_decoded_bytes > 0) {
|
||||
if (m_dictionary->seekback_limit() > 0) {
|
||||
auto read_bytes = MUST(m_dictionary->read_with_seekback({ &previous_byte, sizeof(previous_byte) }, 1));
|
||||
VERIFY(read_bytes.size() == sizeof(previous_byte));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue