From 29cdf35e9d3b3a84b77c5eb9ee0cf2939a0c0edb Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Wed, 11 Jan 2023 15:15:24 -0800 Subject: [PATCH] Only offset segments if the offset is greater than 1ms --- lib/media/segment_reference.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/media/segment_reference.js b/lib/media/segment_reference.js index 615200cdfe..cfde258c8f 100644 --- a/lib/media/segment_reference.js +++ b/lib/media/segment_reference.js @@ -418,7 +418,9 @@ shaka.media.SegmentReference = class { } const desiredStart = this.syncTime - lowestSyncTime; const offset = desiredStart - this.startTime; - this.offset(offset); + if (Math.abs(offset) >= 0.001) { + this.offset(offset); + } } };