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 Dec 3, 2020
1 parent f0eabaf commit e077a4c
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 e077a4c

Please sign in to comment.