Skip to content

Commit

Permalink
minor : fix multiple definitions of to_timestamp()
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Oct 29, 2022
1 parent dec40be commit 014a119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whisper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 014a119

Please sign in to comment.