From e077a4c828e3b8c432e7bd5580f77e5ff62563f1 Mon Sep 17 00:00:00 2001 From: brandonocasey Date: Fri, 9 Oct 2020 12:26:27 -0400 Subject: [PATCH] fix: handle m2ts with no streams --- src/m2ts-helpers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/m2ts-helpers.js b/src/m2ts-helpers.js index cd8f9bd..d5045b4 100644 --- a/src/m2ts-helpers.js +++ b/src/m2ts-helpers.js @@ -93,5 +93,7 @@ export const parseTs = function(bytes, maxPes = Infinity) { endIndex += 188; } + pmt.streams = pmt.steams || {}; + return pmt; };