Skip to content

Commit

Permalink
fix after video-dev#4459
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Toczko committed Feb 10, 2022
1 parent 402cdad commit c33c7aa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/utils/imsc1-ttml-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ export function parseIMSC1(
return;
}

const ttmlList = results.map((mdat) =>
utf8ArrayToStr(new Uint8Array(payload, mdat.start, mdat.end - mdat.start))
);
const ttmlList = results.map((mdat) => utf8ArrayToStr(mdat));

const syncTime = toTimescaleFromScale(initPTS, 1, timescale);

Expand Down Expand Up @@ -189,7 +187,7 @@ function getTtmlStyles(
// 'writingMode'
];

const regionStyleName = region && region.hasAttribute('style')
const regionStyleName = region?.hasAttribute('style')
? region.getAttribute('style')
: null;

Expand Down

0 comments on commit c33c7aa

Please sign in to comment.