Skip to content

Commit

Permalink
Merge pull request #2908 from video-dev/bugfix/update-last-dts-after-…
Browse files Browse the repository at this point in the history
…large-shift

Prevent negative DTS time ranges in fragments
  • Loading branch information
robwalch committed Jul 29, 2020
2 parents 6cd383d + 3ed5a91 commit ff2646a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/remux/mp4-remuxer.js
Expand Up @@ -313,6 +313,7 @@ class MP4Remuxer {
minPTS = Math.min(sample.pts, minPTS);
maxPTS = Math.max(sample.pts, maxPTS);
}
lastDTS = inputSamples[nbSamples - 1].dts;

/* concatenate the video data and construct the mdat in place
(need 8 more bytes to fill length and mpdat type) */
Expand Down

0 comments on commit ff2646a

Please sign in to comment.