forked from extern/whisper.cpp
minor : fix multiple definitions of to_timestamp()
This commit is contained in:
parent
dec40be58f
commit
014a119052
@ -1912,7 +1912,7 @@ whisper_vocab::id whisper_sample_timestamp(
|
|||||||
|
|
||||||
// 500 -> 00:05.000
|
// 500 -> 00:05.000
|
||||||
// 6000 -> 01:00.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 msec = t * 10;
|
||||||
int64_t hr = msec / (1000 * 60 * 60);
|
int64_t hr = msec / (1000 * 60 * 60);
|
||||||
msec = msec - hr * (1000 * 60 * 60);
|
msec = msec - hr * (1000 * 60 * 60);
|
||||||
|
Loading…
Reference in New Issue
Block a user