File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 5
5
.cache
6
6
build /
7
7
build-em /
8
+ build-debug /
9
+ build-release /
8
10
out /
9
11
.vs /
10
12
.vscode /
Original file line number Diff line number Diff line change @@ -2262,7 +2262,11 @@ struct whisper_full_params whisper_full_default_params(enum whisper_decode_strat
2262
2262
switch (strategy) {
2263
2263
case WHISPER_DECODE_GREEDY:
2264
2264
{
2265
+ #if defined(_MSC_VER)
2265
2266
result = {
2267
+ #else
2268
+ result = (struct whisper_full_params ) {
2269
+ #endif
2266
2270
.strategy = WHISPER_DECODE_GREEDY,
2267
2271
.n_threads = std::min (4 , (int32_t ) std::thread::hardware_concurrency ()),
2268
2272
.offset_ms = 0 ,
@@ -2283,8 +2287,12 @@ struct whisper_full_params whisper_full_default_params(enum whisper_decode_strat
2283
2287
} break ;
2284
2288
case WHISPER_DECODE_BEAM_SEARCH:
2285
2289
{
2290
+ #if defined(_MSC_VER)
2286
2291
result = {
2287
- .strategy = WHISPER_DECODE_GREEDY,
2292
+ #else
2293
+ result = (struct whisper_full_params ) {
2294
+ #endif
2295
+ .strategy = WHISPER_DECODE_BEAM_SEARCH,
2288
2296
.n_threads = std::min (4 , (int32_t ) std::thread::hardware_concurrency ()),
2289
2297
.offset_ms = 0 ,
2290
2298
You can’t perform that action at this time.
0 commit comments