Skip to content

Commit

Permalink
Merge pull request #1125 from senaev/senaev-patch-1
Browse files Browse the repository at this point in the history
Resolve subtitles desync error
  • Loading branch information
mangui committed May 18, 2017
2 parents 26a8197 + eaa212f commit 06eabf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/webvtt-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ const WebVTTParser = {
}
}

if (presentationTime && !localTime) {
// If we have MPEGTS but no LOCAL time, offset = presentation time + discontinuity offset
if (presentationTime) {
// If we have MPEGTS, offset = presentation time + discontinuity offset
cueOffset = presentationTime + vttCCs.ccOffset - vttCCs.presentationOffset;
}

Expand Down

0 comments on commit 06eabf6

Please sign in to comment.