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:
parent
1cfadfed3a
commit
7597a956ed
2 changed files with 105 additions and 0 deletions
|
@ -1549,6 +1549,9 @@ SrsMp4MovieHeaderBox::~SrsMp4MovieHeaderBox()
|
|||
|
||||
uint64_t SrsMp4MovieHeaderBox::duration()
|
||||
{
|
||||
if (timescale <= 0) {
|
||||
return 0;
|
||||
}
|
||||
return duration_in_tbn * 1000 / timescale;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue