ggerganov commited on
Commit
c06d5f9
·
unverified ·
1 Parent(s): 6b8369d

whisper : minor compile warning

Browse files
Files changed (1) hide show
  1. src/whisper.cpp +1 -1
src/whisper.cpp CHANGED
@@ -6252,7 +6252,7 @@ int whisper_full_with_state(
6252
  // FIXME: will timestamp offsets be correct?
6253
  // [EXPERIMENTAL] Token-level timestamps with DTW
6254
  {
6255
- const auto n_segments = state->result_all.size() - n_segments_before;
6256
  if (ctx->params.dtw_token_timestamps && n_segments) {
6257
  const int n_frames = std::min(std::min(WHISPER_CHUNK_SIZE * 100, seek_delta), seek_end - seek);
6258
  whisper_exp_compute_token_level_timestamps_dtw(
 
6252
  // FIXME: will timestamp offsets be correct?
6253
  // [EXPERIMENTAL] Token-level timestamps with DTW
6254
  {
6255
+ const int n_segments = state->result_all.size() - n_segments_before;
6256
  if (ctx->params.dtw_token_timestamps && n_segments) {
6257
  const int n_frames = std::min(std::min(WHISPER_CHUNK_SIZE * 100, seek_delta), seek_end - seek);
6258
  whisper_exp_compute_token_level_timestamps_dtw(