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

mp4a: Support QT sound sample description version 1. #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

w-flo
Copy link
Contributor

@w-flo w-flo commented Jun 30, 2023

If the QT version in a sound sample description is set to 1, there are 4 additional 32-bit integers in the description record according to QT docs.

At least some recently sold iPhones produce sound sample description records like this, so this change fixes a parsing failure for these files.


Not sure if it would be better to actually parse the 4 ints and store them in a struct (using a name like QtVersion1Data or SizeInfo or something like that), that could be added as an Option<> to the Mp4aBox? I really don't care about the audio description though, and it's not an ISO mp4 file, so maybe this crate is less interested in these kinds of files. Although it parses without throwing an error otherwise. I just need the width/height of the video in that mov file, and that works great with this patch, but I'm fine with whatever you prefer.

If the QT version in a sound sample description is set to 1, there are 4
additional 32-bit integers in the description record according to QT
docs.

At least some recently sold iPhones produce sound sample description
records like this, so this change fixes a parsing failure for these
files.
@w-flo
Copy link
Contributor Author

w-flo commented Aug 17, 2023

I believe #96 already implemented this! I didn't notice that PR before creating this one. Thank you @emkman99.

I will test it when a new release hits crates.io, and hopefully close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant