]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
minor : fix multiple definitions of to_timestamp()
authorGeorgi Gerganov <redacted>
Sat, 29 Oct 2022 11:14:23 +0000 (14:14 +0300)
committerGeorgi Gerganov <redacted>
Sat, 29 Oct 2022 16:37:19 +0000 (19:37 +0300)
whisper.cpp

index 235f5592fe40ae070f3a8b6ff4eb8a1033ff361a..31f6821f5cd27de54f1fb833cb58cdf9f16bf8f5 100644 (file)
@@ -1912,7 +1912,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);