Skip to content

Commit

Permalink
Merge pull request #2964 from video-dev/bugfix/min-id3-cue-duration
Browse files Browse the repository at this point in the history
Only apply minimum ID3 cue duration when cue has none
  • Loading branch information
robwalch committed Aug 18, 2020
2 parents b1041aa + 388ecd3 commit fc71d81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller/id3-track-controller.js
Expand Up @@ -79,8 +79,8 @@ class ID3TrackController extends EventHandler {
}

const timeDiff = endTime - startTime;
if (timeDiff < MIN_CUE_DURATION) {
endTime += MIN_CUE_DURATION - timeDiff;
if (timeDiff <= 0) {
endTime = startTime + MIN_CUE_DURATION;
}

for (let j = 0; j < frames.length; j++) {
Expand Down

0 comments on commit fc71d81

Please sign in to comment.