made bzip2 smaller than zlib mode !!!
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1241 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
d14d52c461
commit
77cb319b8c
9 changed files with 38 additions and 569 deletions
|
@ -637,25 +637,6 @@ void BZ2_compressBlock ( EState* s, Bool is_last_block )
|
|||
if (s->nblock > 0) {
|
||||
|
||||
bsPutUChar ( s, 0x31 );
|
||||
#if 0
|
||||
bsPutUChar ( s, 0x41 );
|
||||
bsPutUChar ( s, 0x59 ); bsPutUChar ( s, 0x26 );
|
||||
bsPutUChar ( s, 0x53 ); bsPutUChar ( s, 0x59 );
|
||||
#endif
|
||||
|
||||
/*-- Now the block's CRC, so it is in a known place. --*/
|
||||
// bsPutUInt32 ( s, s->blockCRC );
|
||||
|
||||
/*--
|
||||
Now a single bit indicating (non-)randomisation.
|
||||
As of version 0.9.5, we use a better sorting algorithm
|
||||
which makes randomisation unnecessary. So always set
|
||||
the randomised bit to 'no'. Of course, the decoder
|
||||
still needs to be able to handle randomised blocks
|
||||
so as to maintain backwards compatibility with
|
||||
older versions of bzip2.
|
||||
--*/
|
||||
bsW(s,1,0);
|
||||
|
||||
bsW ( s, 24, s->origPtr );
|
||||
generateMTFValues ( s );
|
||||
|
@ -667,12 +648,6 @@ void BZ2_compressBlock ( EState* s, Bool is_last_block )
|
|||
if (is_last_block) {
|
||||
|
||||
bsPutUChar ( s, 0x17 );
|
||||
#if 0
|
||||
bsPutUChar ( s, 0x72 );
|
||||
bsPutUChar ( s, 0x45 ); bsPutUChar ( s, 0x38 );
|
||||
bsPutUChar ( s, 0x50 ); bsPutUChar ( s, 0x90 );
|
||||
#endif
|
||||
// bsPutUInt32 ( s, s->combinedCRC );
|
||||
bsFinishWrite ( s );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue