diff --git a/src/lib_ccx/lib_ccx.h b/src/lib_ccx/lib_ccx.h index f938281b..99d32996 100644 --- a/src/lib_ccx/lib_ccx.h +++ b/src/lib_ccx/lib_ccx.h @@ -252,7 +252,6 @@ bool_t in_array(uint16_t *array, uint16_t length, uint16_t element) ; int hex_to_int (char high, char low); int hex_string_to_int(char* string, int len); void timestamp_to_srttime(uint64_t timestamp, char *buffer); -void timestamp_to_smptetttime(uint64_t timestamp, char *buffer); int levenshtein_dist (const uint64_t *s1, const uint64_t *s2, unsigned s1len, unsigned s2len); void millis_to_date (uint64_t timestamp, char *buffer, enum ccx_output_date_format date_format, char millis_separator); void signal_handler(int sig_type); diff --git a/src/lib_ccx/utility.c b/src/lib_ccx/utility.c index 9dc59dd1..68fcea86 100644 --- a/src/lib_ccx/utility.c +++ b/src/lib_ccx/utility.c @@ -139,16 +139,6 @@ void timestamp_to_srttime(uint64_t timestamp, char *buffer) sprintf(buffer, "%02"PRIu8":%02"PRIu8":%02"PRIu8",%03"PRIu16, h, m, s, u); } -void timestamp_to_smptetttime(uint64_t timestamp, char *buffer) -{ - uint64_t p = timestamp; - uint8_t h = (uint8_t) (p / 3600000); - uint8_t m = (uint8_t) (p / 60000 - 60 * h); - uint8_t s = (uint8_t) (p / 1000 - 3600 * h - 60 * m); - uint16_t u = (uint16_t) (p - 3600000 * h - 60000 * m - 1000 * s); - sprintf(buffer, "%02"PRIu8":%02"PRIu8":%02"PRIu8".%03"PRIu16, h, m, s, u); -} - #define MIN3(a, b, c) ((a) < (b) ? ((a) < (c) ? (a) : (c)) : ((b) < (c) ? (b) : (c))) int levenshtein_dist (const uint64_t *s1, const uint64_t *s2, unsigned s1len, unsigned s2len)