Skip to content

Commit

Permalink
Only apply minimum ID3 cue duration when cue has none
Browse files Browse the repository at this point in the history
resolves #2963
  • Loading branch information
Rob Walch committed Aug 10, 2020
1 parent b1041aa commit 388ecd3
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 388ecd3

Please sign in to comment.