diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-01-13 10:14:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-01-13 10:14:57 +0000 |
commit | 114a1b9719a801126cff7ac8a0e8376432e4a3b8 (patch) | |
tree | 5db09c979425e0331036c3c1b8efaae51771ee7d /encoder.cc | |
parent | Adding upstream version 1.20. (diff) | |
download | lzip-114a1b9719a801126cff7ac8a0e8376432e4a3b8.tar.xz lzip-114a1b9719a801126cff7ac8a0e8376432e4a3b8.zip |
Adding upstream version 1.21.upstream/1.21
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | encoder.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* Lzip - LZMA lossless data compressor - Copyright (C) 2008-2018 Antonio Diaz Diaz. + Copyright (C) 2008-2019 Antonio Diaz Diaz. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -479,7 +479,7 @@ int LZ_encoder::sequence_optimizer( const int reps[num_rep_distances], bool LZ_encoder::encode_member( const unsigned long long member_size ) { const unsigned long long member_size_limit = - member_size - File_trailer::size - max_marker_size; + member_size - Lzip_trailer::size - max_marker_size; const bool best = ( match_len_limit > 12 ); const int dis_price_count = best ? 1 : 512; const int align_price_count = best ? 1 : dis_align_size; @@ -491,7 +491,7 @@ bool LZ_encoder::encode_member( const unsigned long long member_size ) State state; for( int i = 0; i < num_rep_distances; ++i ) reps[i] = 0; - if( data_position() != 0 || renc.member_position() != File_header::size ) + if( data_position() != 0 || renc.member_position() != Lzip_header::size ) return false; // can be called only once if( !data_finished() ) // encode first byte |