mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-24 11:53:25 +00:00
Removed depricated function.
This commit is contained in:
parent
4bcc79fdb7
commit
7b4c3bb26d
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user