liblzma: Stream decoder: Fix comments.

This commit is contained in:
Lasse Collin 2022-09-28 11:00:23 +03:00
parent f664cb2584
commit 7e68fda58c
1 changed files with 5 additions and 7 deletions

View File

@ -24,9 +24,7 @@ typedef struct {
SEQ_STREAM_PADDING, SEQ_STREAM_PADDING,
} sequence; } sequence;
/// Block or Metadata decoder. This takes little memory and the same /// Block decoder
/// data structure can be used to decode every Block Header, so it's
/// a good idea to have a separate lzma_next_coder structure for it.
lzma_next_coder block_decoder; lzma_next_coder block_decoder;
/// Block options decoded by the Block Header decoder and used by /// Block options decoded by the Block Header decoder and used by
@ -63,9 +61,9 @@ typedef struct {
/// If true, we will decode concatenated Streams that possibly have /// If true, we will decode concatenated Streams that possibly have
/// Stream Padding between or after them. LZMA_STREAM_END is returned /// Stream Padding between or after them. LZMA_STREAM_END is returned
/// once the application isn't giving us any new input, and we aren't /// once the application isn't giving us any new input (LZMA_FINISH),
/// in the middle of a Stream, and possible Stream Padding is a /// and we aren't in the middle of a Stream, and possible
/// multiple of four bytes. /// Stream Padding is a multiple of four bytes.
bool concatenated; bool concatenated;
/// When decoding concatenated Streams, this is true as long as we /// When decoding concatenated Streams, this is true as long as we
@ -240,7 +238,7 @@ stream_decode(void *coder_ptr, const lzma_allocator *allocator,
coder->block_options.filters = NULL; coder->block_options.filters = NULL;
// Check if memory usage calculation and Block enocoder // Check if memory usage calculation and Block decoder
// initialization succeeded. // initialization succeeded.
if (ret != LZMA_OK) if (ret != LZMA_OK)
return ret; return ret;