Skip to content

Commit

Permalink
feat: Parses a TFDT Box, with a loss of precision beyond 53 bits (sha…
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Aug 19, 2023
1 parent ffafacf commit c6e8449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cea/mp4_cea_parser.js
Expand Up @@ -216,7 +216,7 @@ shaka.cea.Mp4CeaParser = class {
box.version != null,
'TFDT is a full box and should have a valid version.');

const parsedTFDT = shaka.util.Mp4BoxParsers.parseTFDT(
const parsedTFDT = shaka.util.Mp4BoxParsers.parseTFDTInaccurate(
box.reader, box.version);

baseMediaDecodeTime = parsedTFDT.baseMediaDecodeTime;
Expand Down
2 changes: 1 addition & 1 deletion lib/text/mp4_vtt_parser.js
Expand Up @@ -135,7 +135,7 @@ shaka.text.Mp4VttParser = class {
box.version == 0 || box.version == 1,
'TFDT version can only be 0 or 1');

const parsedTFDTBox = shaka.util.Mp4BoxParsers.parseTFDT(
const parsedTFDTBox = shaka.util.Mp4BoxParsers.parseTFDTInaccurate(
box.reader, box.version);
baseTime = parsedTFDTBox.baseMediaDecodeTime;
})
Expand Down

0 comments on commit c6e8449

Please sign in to comment.