From 6bd8ec966a0f9420bed63a270e88c93feef23d56 Mon Sep 17 00:00:00 2001 From: boolemancer <48014766+boolemancer@users.noreply.github.com> Date: Sun, 8 Jan 2023 05:06:39 -0800 Subject: [PATCH] Update whisper.cpp Co-authored-by: Georgi Gerganov --- whisper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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