diff options
| author | Konstantin <const@const.me> | 2023-02-03 16:07:54 +0100 |
|---|---|---|
| committer | Konstantin <const@const.me> | 2023-02-03 16:07:54 +0100 |
| commit | 3ba8e6389679007445f4fc1c52439cb0df3ddba0 (patch) | |
| tree | 0bffa67da50e7042f745f4c9aad72b2f046feeec /Examples/main/main.cpp | |
| parent | 671ca710ad3f0d3a64af7b84af1025e2a0b68296 (diff) | |
Bugfix, incorrect output of command-line examples when launched with multiple input files
Diffstat (limited to 'Examples/main/main.cpp')
| -rw-r--r-- | Examples/main/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Examples/main/main.cpp b/Examples/main/main.cpp index 88ddc6d..7706b8f 100644 --- a/Examples/main/main.cpp +++ b/Examples/main/main.cpp @@ -246,6 +246,8 @@ int wmain( int argc, wchar_t* argv[] ) wparams.setFlag( eFullParamsFlags::PrintTimestamps, !params.no_timestamps ); wparams.setFlag( eFullParamsFlags::PrintSpecial, params.print_special ); wparams.setFlag( eFullParamsFlags::Translate, params.translate ); + // When there're multiple input files, assuming they're independent clips + wparams.setFlag( eFullParamsFlags::NoContext ); wparams.language = Whisper::makeLanguageKey( params.language.c_str() ); wparams.cpuThreads = params.n_threads; if( params.max_context != UINT_MAX ) |
