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

Open
wants to merge 2 commits into
base: develop-v1.18.0
Choose a base branch
from

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.
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

2 participants