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

Parse and expose tenc members related to cbcs + tests #165

Merged
merged 3 commits into from
Nov 2, 2018

Conversation

SingingTree
Copy link
Contributor

No description provided.

@SingingTree
Copy link
Contributor Author

Travis failure above appears to be a failure in the CI env rather than a code issue.

@kinetiknz
Copy link
Collaborator

Travis failure above appears to be a failure in the CI env rather than a code issue.

Looks like rust-lang/rust#55571, which should be fixed overnight.

Copy link
Collaborator

@kinetiknz kinetiknz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good. Do you have a link to the latest/current spec so I can cast an eye over it, please?

Parse the tenc members for:
- crypt_byte_block: number of encrypted bytes in the pattern if pattern
encryption is used
- skip_byte_block: number of clear bytes in the pattern if pattern
encryption is used
- constant_iv: the iv that is used for a track by certain pattern based
encryption schemes, such as cbcs

Update the data structures used to contain new data. Note, the
is_encrypted member of the tenc structure has been changed from a u32 to
a u8 to reflect changes in the spec. This changes our interface.
The new members being parsed on the tenc box should not exist in the
current test files. Update the existing tests to reflect this.
Add tests to both mp4parse and mprparse_capi to verify parsing of
encrypted mp4s. These primarily focus on cbcs encryption, but some new
cenc tests have also been added to the c-api to provide further
coverage.
@SingingTree
Copy link
Contributor Author

Updated. I have sent the spec via other channels given its proprietary nature.

@kinetiknz kinetiknz merged commit 76d811a into mozilla:master Nov 2, 2018
@kinetiknz
Copy link
Collaborator

Thanks!

@SingingTree SingingTree deleted the tenc_cbcs branch November 4, 2018 19:13
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.

2 participants