From a4ffdb47d1da9912e3a6e7c83a93994ea4d0f338 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 29 Oct 2022 14:14:23 +0300 Subject: [PATCH] minor : fix multiple definitions of to_timestamp() --- whisper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisper.cpp b/whisper.cpp index 98ef198..1528de4 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -1911,7 +1911,7 @@ whisper_vocab::id whisper_sample_timestamp( // 500 -> 00:05.000 // 6000 -> 01:00.000 -std::string to_timestamp(int64_t t, bool comma = false) { +static std::string to_timestamp(int64_t t, bool comma = false) { int64_t msec = t * 10; int64_t hr = msec / (1000 * 60 * 60); msec = msec - hr * (1000 * 60 * 60);