@@ -7891,7 +7891,7 @@ int whisper_full_lang_id(struct whisper_context * ctx) {
7891
7891
return ctx->state->lang_id;
7892
7892
}
7893
7893
7894
- static int64_t map_processed_to_original_time (int64_t processed_time, const std::vector<vad_time_mapping>& mapping_table) {
7894
+ static int64_t map_processed_to_original_time(int64_t processed_time, const std::vector<vad_time_mapping> & mapping_table) {
7895
7895
if (mapping_table.empty()) {
7896
7896
return processed_time;
7897
7897
}
@@ -7907,7 +7907,7 @@ static int64_t map_processed_to_original_time(int64_t processed_time, const std:
7907
7907
// Binary search over the time map that finds the first entry that has a
7908
7908
// processed time greater than or equal to the current processed time.
7909
7909
auto upper = std::lower_bound(mapping_table.begin(), mapping_table.end(), processed_time,
7910
- [](const vad_time_mapping& entry, int64_t time ) {
7910
+ [](const vad_time_mapping & entry, int64_t time) {
7911
7911
return entry.processed_time < time;
7912
7912
}
7913
7913
);
@@ -7933,7 +7933,7 @@ static int64_t map_processed_to_original_time(int64_t processed_time, const std:
7933
7933
}
7934
7934
7935
7935
// Function to get the starting timestamp of a segment
7936
- int64_t whisper_full_get_segment_t0_from_state (struct whisper_state * state, int i_segment) {
7936
+ int64_t whisper_full_get_segment_t0_from_state(struct whisper_state * state, int i_segment) {
7937
7937
// If VAD wasn't used, return the original timestamp
7938
7938
if (!state->has_vad_segments || state->vad_mapping_table.empty()) {
7939
7939
return state->result_all[i_segment].t0;
@@ -7947,7 +7947,7 @@ int64_t whisper_full_get_segment_t0_from_state(struct whisper_state* state, int
7947
7947
}
7948
7948
7949
7949
// Function to get the ending timestamp of a segment
7950
- int64_t whisper_full_get_segment_t1_from_state (struct whisper_state * state, int i_segment) {
7950
+ int64_t whisper_full_get_segment_t1_from_state(struct whisper_state * state, int i_segment) {
7951
7951
// If VAD wasn't used, return the original timestamp
7952
7952
if (!state->has_vad_segments || state->vad_mapping_table.empty()) {
7953
7953
return state->result_all[i_segment].t1;
0 commit comments