diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2018-03-12 14:19:17 +0300 |
---|---|---|
committer | Kornel <kornel@geekhood.net> | 2018-03-12 14:19:46 +0300 |
commit | f19b649c73cd8b74c4e0b8a3a728a82c6bda47b4 (patch) | |
tree | 3725026df472886583a019239ed169e356ce1f63 /CPP/7zip/Archive/7z/7zEncode.cpp | |
parent | 866a06f5a0c0ede11979504a318e150030aa7a11 (diff) |
18.0318.03
Diffstat (limited to 'CPP/7zip/Archive/7z/7zEncode.cpp')
-rw-r--r-- | CPP/7zip/Archive/7z/7zEncode.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/CPP/7zip/Archive/7z/7zEncode.cpp b/CPP/7zip/Archive/7z/7zEncode.cpp index 8700d721..7d8270f9 100644 --- a/CPP/7zip/Archive/7z/7zEncode.cpp +++ b/CPP/7zip/Archive/7z/7zEncode.cpp @@ -154,9 +154,18 @@ HRESULT CEncoder::CreateMixerCoder( CCreatedCoder cod; - RINOK(CreateCoder( + if (methodFull.CodecIndex >= 0) + { + RINOK(CreateCoder_Index( + EXTERNAL_CODECS_LOC_VARS + methodFull.CodecIndex, true, cod)); + } + else + { + RINOK(CreateCoder_Id( EXTERNAL_CODECS_LOC_VARS methodFull.Id, true, cod)); + } if (cod.NumStreams != methodFull.NumStreams) return E_FAIL; |