Skip to content

Commit

Permalink
mp4-remuxer: tiny optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
mangui committed Oct 13, 2015
1 parent 9d2521c commit 0850152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/remux/mp4-remuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ class MP4Remuxer {
}

remuxID3(track,timeOffset) {
var length = track.samples.length, sample;
// consume samples
if(track.samples.length) {
var length = track.samples.length, sample;
if(length) {
for(var index = 0; index < length; index++) {
sample = track.samples[index];
// setting id3 pts, dts to relative time
Expand Down

0 comments on commit 0850152

Please sign in to comment.