Skip to content
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

Handle negative data_offset in TrunBox #15

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Nov 12, 2024

As a followup to #14 briefly vetted all u64 and u32 casts.
The only one that looked suspicious was data_offset. Didn't find much about it quickly, only that gstreamer also distinctively uses a signed integer, so let's not cast that away (which would potentially cause more overflow errors on debug builds) https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/e5d2dd8e8d9f9df1f33e44ffe296cc55d7b55346/subprojects/gst-plugins-good/gst/isomp4/atoms.h#L812

  • tested against Rerun

@Wumpf Wumpf added bug Something isn't working include in changelog Will appear in CHANGELOG.md labels Nov 12, 2024
@Wumpf Wumpf merged commit 06e0d6f into main Nov 12, 2024
8 of 9 checks passed
@Wumpf Wumpf deleted the andreas/handle-negative-data-offset-in-trun branch November 12, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working include in changelog Will appear in CHANGELOG.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants