mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
DASH: Fix number mode bug to make it run. v5.0.96 (#3240)
* Add utc time utility * Fix calculate duration in fmp4 * Refine dash code, use segment template timeline * Shrink m4s file and cleanup * Support play by dash.js * Use SegmentTemplate timeline mode with $Number$ Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
parent
e6ccd8ec9a
commit
d927996890
18 changed files with 506 additions and 105 deletions
|
|
@ -23,6 +23,10 @@ typedef int64_t srs_utime_t;
|
|||
#define srsu2ms(us) ((us) / SRS_UTIME_MILLISECONDS)
|
||||
#define srsu2msi(us) int((us) / SRS_UTIME_MILLISECONDS)
|
||||
|
||||
// Convert srs_utime_t as second.
|
||||
#define srsu2s(us) ((us) / SRS_UTIME_SECONDS)
|
||||
#define srsu2si(us) ((us) / SRS_UTIME_SECONDS)
|
||||
|
||||
// Them time duration = end - start. return 0, if start or end is 0.
|
||||
srs_utime_t srs_duration(srs_utime_t start, srs_utime_t end);
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 5
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 95
|
||||
#define VERSION_REVISION 96
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue