lzip-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lzip-bug] Version 0.8-rc2 of lzlib released


From: Jacob Rief
Subject: Re: [Lzip-bug] Version 0.8-rc2 of lzlib released
Date: Mon, 11 Jan 2010 00:15:27 +0100

Hello Antonio,
now I wanted to implement a mechanism in my lzip stream, in order to
forward to the next valid member using LZ_decompress_sync_to_member.
The documentation for LZ_decompress_sync_to_member says:
     Enters a search state until it finds a member header. This
     function is useful to discard the rest of the current member, for
     example in case of a data error. If the decoder is already at the
     beginning of a member, this function does nothing.

if I understand the algorithm for forwarding to the next valid member,
this should look like:
     1) LZ_decompress_open
         the (compressed) input stream does not start with a valid LZIP header
     2) LZ_decompress_write
     3) go back to step 2 until LZ_decompress_sync_to_member returns 0
     4) LZ_decompress_reset
         now do a decompression as usual, starting from this stream position.

Would that work?

Regards, Jacob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]