Skip to content

Commit

Permalink
fix(DASH): Live DASH allows segment overlap in the updated manifest f…
Browse files Browse the repository at this point in the history
…or first new segments (#7405)

fix(DASH): Live DASH allows segment overlap in the updated manifest for
first new segments to avoid creating GAP with ms inaccurate manifest vs
Segment duration and start time

Fixes #7397
  • Loading branch information
Iragne authored and avelad committed Oct 18, 2024
1 parent 67bc16e commit 8d7526b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dash/segment_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ shaka.dash.TimelineSegmentIndex = class extends shaka.media.SegmentIndex {
if (currentTimeline.length) {
const lastCurrentEntry = currentTimeline[currentTimeline.length - 1];
newEntries = info.timeline.filter((entry) => {
return entry.start >= lastCurrentEntry.end;
return entry.end > lastCurrentEntry.end;
});
} else {
newEntries = info.timeline.slice();
Expand Down

0 comments on commit 8d7526b

Please sign in to comment.