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

Check that auxiliary tracks have 'auxv' as the handler_type #40

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

Conversation

vigneshvg
Copy link
Contributor

According to the HEIF specification, auxiliary tracks should have 'auxv' as the handler_type.

Update the existing findAuxlTracks logic to check for that and then perform the 'auxi' check only on those tracks which have the handler_type as 'auxi'.

Fixes issue #38.

src/specs/heif/heif.cpp Outdated Show resolved Hide resolved
According to the HEIF specification, auxiliary tracks should have
'auxv' as the handler_type.

Update the existing findAuxlTracks logic to check for that and
then perform the 'auxi' check only on those tracks which have
the handler_type as 'auxi'.

Fixes issue gpac#38.
Copy link

@leo-barnes leo-barnes left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -66,22 +66,32 @@ displayable (not hidden)

Specification description: HEIF - ISO/IEC 23008-12 - 2nd Edition N18310

[heif][Rule #1] Error: Found 'auxl' track (trackId: 1) with unexpected handler_type="pico". Must be 'auxv'.

Choose a reason for hiding this comment

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

Suggested change
[heif][Rule #1] Error: Found 'auxl' track (trackId: 1) with unexpected handler_type="pico". Must be 'auxv'.
[heif][Rule #1] Error: Found 'auxl' track (trackId: 1) with unexpected handler_type="pict". Must be 'auxv'.

Choose a reason for hiding this comment

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

Or wait, maybe this was intended...

@@ -503,7 +503,7 @@ moov_start:
db 0x00 ; "version(8)"
db 0x00, 0x00, 0x00 ; "flags(24)"
db 0x00, 0x00, 0x00, 0x00 ; "pre_defined(32)"
db 0x70, 0x69, 0x63, 0x74 ; "handler_type(32)" ('pict')
db 0x61, 0x75, 0x78, 0x76 ; "handler_type(32)" ('pict')

Choose a reason for hiding this comment

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

Suggested change
db 0x61, 0x75, 0x78, 0x76 ; "handler_type(32)" ('pict')
db 0x61, 0x75, 0x78, 0x76 ; "handler_type(32)" ('auxv')

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.

3 participants