mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +00:00
Fixed wrong calculation of last segment number when using segment template without segment timeline.
This commit is contained in:
parent
14d1317ce0
commit
1a363849e2
1 changed files with 1 additions and 1 deletions
|
|
@ -301,7 +301,7 @@ public abstract class SegmentBase {
|
|||
return DashSegmentIndex.INDEX_UNBOUNDED;
|
||||
} else {
|
||||
long durationMs = (duration * 1000) / timescale;
|
||||
return startNumber + (int) (periodDurationMs / durationMs);
|
||||
return startNumber + (int) (periodDurationMs / durationMs) - 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue