1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

Fixed Stream decoder to actually use the first_stream variable.

This commit is contained in:
Lasse Collin 2008-09-30 13:57:44 +03:00
parent 3bdbc12c05
commit 8e60c889a2

View file

@ -128,6 +128,11 @@ stream_decode(lzma_coder *coder, lzma_allocator *allocator,
return ret == LZMA_FORMAT_ERROR && !coder->first_stream return ret == LZMA_FORMAT_ERROR && !coder->first_stream
? LZMA_DATA_ERROR : ret; ? LZMA_DATA_ERROR : ret;
// If we are decoding concatenated Streams, and the later
// Streams have invalid Header Magic Bytes, we give
// LZMA_DATA_ERROR instead of LZMA_FORMAT_ERROR.
coder->first_stream = false;
// Copy the type of the Check so that Block Header and Block // Copy the type of the Check so that Block Header and Block
// decoders see it. // decoders see it.
coder->block_options.check = coder->stream_flags.check; coder->block_options.check = coder->stream_flags.check;