Skip to content

Commit

Permalink
fix: handle m2ts with no streams
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Oct 9, 2020
1 parent 8edde0b commit 900b046
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/m2ts-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,7 @@ export const parseTs = function(bytes, maxPes = Infinity) {
endIndex += 188;
}

pmt.streams = pmt.steams || {};

return pmt;
};

0 comments on commit 900b046

Please sign in to comment.