From 1a9517805d8280be764cca11b18a528406214cfa Mon Sep 17 00:00:00 2001 From: Iragne Date: Tue, 15 Oct 2024 12:49:17 +0200 Subject: [PATCH] fix(DASH): Live DASH allows segment overlap in the updated manifest for 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 https://github.com/shaka-project/shaka-player/issues/7397 --- lib/dash/segment_template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dash/segment_template.js b/lib/dash/segment_template.js index 5f3738ccf1..4c223ba66f 100644 --- a/lib/dash/segment_template.js +++ b/lib/dash/segment_template.js @@ -860,7 +860,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();