Skip to content

Commit c76fc4e

Browse files
committed
SMARTTVS-4874: ATEME 4.21.4 subtitles duplicated (different endTime)
1 parent e36eb11 commit c76fc4e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/text/cue.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,11 @@ shaka.text.Cue = class {
367367
// performance optimization. We can avoid the more expensive recursive
368368
// checks if the top-level properties don't match.
369369
// See: https://github.com/shaka-project/shaka-player/issues/3018
370-
if (cue1.startTime != cue2.startTime || cue1.endTime != cue2.endTime ||
370+
if (cue1.startTime != cue2.startTime ||
371+
// With Ateme 4.21.4 subtitles we have cues with the same startTime and
372+
// payload but with different endTime (around 15 milliseconds).
373+
// It causes the subtitles to be duplicated.
374+
// cue1.endTime != cue2.endTime ||
371375
cue1.payload != cue2.payload) {
372376
return false;
373377
}

0 commit comments

Comments
 (0)