Skip to content

Commit

Permalink
Update lastDTS after realigning samples in case firstDTS set to a hig…
Browse files Browse the repository at this point in the history
…her value

video-dev#2905
  • Loading branch information
Rob Walch committed Jul 20, 2020
1 parent 489fbe3 commit 3ed5a91
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 3ed5a91

Please sign in to comment.