1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Improve test coverage for dash init encoder

This commit is contained in:
winlin 2019-12-31 19:17:40 +08:00
parent 1cfadfed3a
commit 7597a956ed
2 changed files with 105 additions and 0 deletions

View file

@ -1549,6 +1549,9 @@ SrsMp4MovieHeaderBox::~SrsMp4MovieHeaderBox()
uint64_t SrsMp4MovieHeaderBox::duration()
{
if (timescale <= 0) {
return 0;
}
return duration_in_tbn * 1000 / timescale;
}