Skip to content

Commit

Permalink
Fix issues #277 #293
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmilk committed Feb 12, 2023
1 parent 267e02d commit dcaafb8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CPP/7zip/Archive/7z/7zHandlerOut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace NArchive {
namespace N7z {

#define k_LZMA_Name "LZMA"
#define kDefaultMethodName "zstd"
#define kDefaultMethodName "LZMA2"
#define k_Copy_Name "Copy"

#define k_MatchFinder_ForHeaders "BT2"
Expand Down Expand Up @@ -727,8 +727,7 @@ STDMETHODIMP CHandler::UpdateItems(ISequentialOutStream *outStream, UInt32 numIt
options.Method = &methodMode;
options.HeaderMethod = (_compressHeaders || encryptHeaders) ? &headerMethod : NULL;
options.UseFilters = (level != 0 && _autoFilter && !methodMode.Filter_was_Inserted);
// use BCJ for all levels, BCJ2 uses LZMA2! /TR 2016-03-03
// options.MaxFilter = (level >= 8);
options.MaxFilter = (level >= 8);
options.AnalysisLevel = GetAnalysisLevel();

options.HeaderOptions.CompressMainHeader = compressMainHeader;
Expand Down Expand Up @@ -971,7 +970,7 @@ HRESULT COutHandler::SetProperty(const wchar_t *nameSpec, const PROPVARIANT &val
return S_OK;
}
}

if (name.IsEqualTo("tr")) return PROPVARIANT_to_BoolPair(value, Write_Attrib);

if (name.IsEqualTo("mtf")) return PROPVARIANT_to_bool(value, _useMultiThreadMixer);
Expand Down

0 comments on commit dcaafb8

Please sign in to comment.