Open pavel-pimenov opened 6 years ago
Something for new TimeCode class, I guess.
Add static member function
int64u TimeCode::str2timecode(const char* Value)
{
...
and PR?
hum, now hesitating, having double-checked I see it is a timestamp (not a timecode), as the part after seconds are milliseconds. But most code is similar between timecode and timestamp.
I have some ideas for having something handling both timestamps and timecodes, including handling of Scc_str2timecode
which is similar, I take it.
Source\MediaInfo\Text\File_SubRip.cpp(39):int64u SubRip_str2timecode(const char Value) Source\MediaInfo\Text\File_Ttml.cpp(42):int64u Ttml_str2timecode(const char Value)