diff --git a/whisper.cpp b/whisper.cpp index 5da6760..f1985a4 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -3387,8 +3387,8 @@ static int timestamp_to_sample(int64_t t, int n_samples) { return std::max(0, std::min((int) n_samples - 1, (int) ((t*WHISPER_SAMPLE_RATE)/100))); } -static int64_t sample_to_timestamp(int64_t i_sample) { - return (100*i_sample)/WHISPER_SAMPLE_RATE; +static int64_t sample_to_timestamp(int i_sample) { + return (100ll*i_sample)/WHISPER_SAMPLE_RATE; } // a cost-function / heuristic that is high for text that takes longer to pronounce