diff --git a/src/remux/mp4-remuxer.js b/src/remux/mp4-remuxer.js index fb820406af6..c694bfec051 100644 --- a/src/remux/mp4-remuxer.js +++ b/src/remux/mp4-remuxer.js @@ -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) */