Skip to content

Commit

Permalink
Merge pull request #4334 from nklhtv/fix-sidx-parse
Browse files Browse the repository at this point in the history
fix sidx parsing
  • Loading branch information
robwalch committed Jul 12, 2022
2 parents c750bf9 + ffdb725 commit 297e5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/mp4-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function parseSegmentIndex(initSegment: Uint8Array): SidxInfo | null {
const version = sidx[0];

// set initial offset, we skip the reference ID (not needed)
let index = version === 0 ? 8 : 16;
let index = 8;

const timescale = readUint32(sidx, index);
index += 4;
Expand Down

0 comments on commit 297e5c9

Please sign in to comment.