fixed language auto-detection for state provided processing (#627)

Co-authored-by: Sandro Hanea <sandrohanea@microsoft.com>
This commit is contained in:
sandrohanea 2023-03-22 20:47:09 +01:00 committed by GitHub
parent a5e60c019d
commit d4fa0d92ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2855,7 +2855,7 @@ int whisper_lang_auto_detect_with_state(
}
// run the encoder
if (whisper_encode(ctx, seek, n_threads) != 0) {
if (whisper_encode_with_state(ctx, state, seek, n_threads) != 0) {
fprintf(stderr, "%s: failed to encode\n", __func__);
return -6;
}