mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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;
|
return DashSegmentIndex.INDEX_UNBOUNDED;
|
||||||
} else {
|
} else {
|
||||||
long durationMs = (duration * 1000) / timescale;
|
long durationMs = (duration * 1000) / timescale;
|
||||||
return startNumber + (int) (periodDurationMs / durationMs);
|
return startNumber + (int) (periodDurationMs / durationMs) - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue