auto_decoder.c (256281) | auto_decoder.c (263285) |
---|---|
1/////////////////////////////////////////////////////////////////////////////// 2// 3/// \file auto_decoder.c 4/// \brief Autodetect between .xz Stream and .lzma (LZMA_Alone) formats 5// 6// Author: Lasse Collin 7// 8// This file has been put into the public domain. --- 40 unchanged lines hidden (view full) --- 49 // new format), it has to be LZMA_Alone, or something that 50 // we don't support at all. 51 if (in[*in_pos] == 0xFD) { 52 return_if_error(lzma_stream_decoder_init( 53 &coder->next, allocator, 54 coder->memlimit, coder->flags)); 55 } else { 56 return_if_error(lzma_alone_decoder_init(&coder->next, | 1/////////////////////////////////////////////////////////////////////////////// 2// 3/// \file auto_decoder.c 4/// \brief Autodetect between .xz Stream and .lzma (LZMA_Alone) formats 5// 6// Author: Lasse Collin 7// 8// This file has been put into the public domain. --- 40 unchanged lines hidden (view full) --- 49 // new format), it has to be LZMA_Alone, or something that 50 // we don't support at all. 51 if (in[*in_pos] == 0xFD) { 52 return_if_error(lzma_stream_decoder_init( 53 &coder->next, allocator, 54 coder->memlimit, coder->flags)); 55 } else { 56 return_if_error(lzma_alone_decoder_init(&coder->next, |
57 allocator, coder->memlimit)); | 57 allocator, coder->memlimit, true)); |
58 59 // If the application wants to know about missing 60 // integrity check or about the check in general, we 61 // need to handle it here, because LZMA_Alone decoder 62 // doesn't accept any flags. 63 if (coder->flags & LZMA_TELL_NO_CHECK) 64 return LZMA_NO_CHECK; 65 --- 121 unchanged lines hidden --- | 58 59 // If the application wants to know about missing 60 // integrity check or about the check in general, we 61 // need to handle it here, because LZMA_Alone decoder 62 // doesn't accept any flags. 63 if (coder->flags & LZMA_TELL_NO_CHECK) 64 return LZMA_NO_CHECK; 65 --- 121 unchanged lines hidden --- |