Skip to content

Commit

Permalink
mp4-remuxer: don't filter audio frame with pts=0
Browse files Browse the repository at this point in the history
fix livestream playback issues on  OS X 10.12 and less
  • Loading branch information
mangui committed Dec 19, 2017
1 parent 0d8291f commit c94a737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/remux/mp4-remuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ class MP4Remuxer {
// if we don't remove these negative samples, they will shift all audio samples forward.
// leading to audio overlap between current / next fragment
inputSamples = inputSamples.filter(function(sample) {
return sample.pts > 0;
return sample.pts >= 0;
});

// in case all samples have negative PTS, and have been filtered out, return now
Expand Down

0 comments on commit c94a737

Please sign in to comment.