Simplified MP4 input logic significantly, added DTSC::Meta::getPartTime() function, fixed issues with MP4 files with frame durations smaller than 1ms

This commit is contained in:
Thulinma 2022-11-25 02:27:13 +01:00
parent e69050224b
commit 4743769c15
4 changed files with 61 additions and 64 deletions

View file

@ -445,6 +445,7 @@ namespace DTSC{
uint32_t getKeyIndexForTime(uint32_t idx, uint64_t timestamp) const;
uint32_t getPartIndex(uint64_t timestamp, size_t idx) const;
uint64_t getPartTime(uint32_t partIndex, size_t idx) const;
bool nextPageAvailable(uint32_t idx, size_t currentPage) const;
size_t getPageNumberForTime(uint32_t idx, uint64_t time) const;