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
_______________________________________________
Lzip-bug mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lzip-bug