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

libheif: check compatible brands in the ftyp box #1158

Merged

Conversation

bradh
Copy link
Contributor

@bradh bradh commented Apr 2, 2024

Keeps the existing heif_check_filetype behaviour since that is public API. Adds a new function to check both the major version and the compatible_brands list. Switches the heif-convert example to use that new function.

I have put an arbitrary 512 byte limit on how long we expect the ftyp box could be. That seems reasonable, but could be higher or lower.

The goal of this is to support files that are both video and images (sharing data), where the major_brand is something like mp41 but heic is listed in the compatible_brands[].

@bradh bradh force-pushed the compatible_brands_2024-04-02 branch from e8f7883 to 3840e54 Compare April 2, 2024 01:00
Keeps the existing heif_check_filetype behaviour since that is public API.
Adds a new function to check both the major version and the compatible_brands list.
@farindk farindk merged commit 7f94454 into strukturag:develop-v1.18.0 Jun 11, 2024
2 checks passed
@bradh bradh deleted the compatible_brands_2024-04-02 branch June 11, 2024 09:08
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