-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(mp4Inspector): read version 1 sidx boxes #310
Conversation
lib/tools/mp4-inspector.js
Outdated
} else { | ||
// read 64 bits | ||
earliestPresentationTime = view.getUint32(i); | ||
earliestPresentationTime *= Math.pow(2, 32); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regular integer in javascript is 52 bits. Might want to use BigInt for 64 bits number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, browser compatibility doesn't allow us to use BigInt yet. However, since we're working with Uint32 array views, we should still be able to access the full value.
562eacf
to
ace31e6
Compare
ace31e6
to
41fea0a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but one style suggestion (though not required)
Co-authored-by: Garrett Singer <[email protected]>
accidentally merged this into master. I cherry picked this into main and reverted the change in master. |
Should resolve #287.