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

Fix esds box parsing for usac audio #6019

Merged
merged 1 commit into from
Dec 7, 2023
Merged

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Dec 6, 2023

This PR will...

Fix esds box parsing for usac audio

Why is this Pull Request needed?

Corrects codec string parsing of init segments with AAC audio:

  • AAC-LC: mp4a.40.2
  • HE-AAC: mp4a.40.5
  • xHE-AAC (usac): mp4a.40.42

Are there any points in the code the reviewer needs to double check?

Resolves issues:

Prevents "mp4a.40.5" from being used in place of the correct audio object type, and reduces the change of encountering this log message:

Parsed audio codec "mp4a" or audio object type not handled. Using "mp4a.40.5"

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

@robwalch robwalch added this to the 1.5.0 milestone Dec 6, 2023
@robwalch robwalch force-pushed the feature/esds-parsing branch from af8402a to c5326be Compare December 6, 2023 23:20
@robwalch robwalch merged commit 4f8aadc into master Dec 7, 2023
15 of 16 checks passed
@robwalch robwalch deleted the feature/esds-parsing branch December 7, 2023 01:24
}
if (flags & 0x40) {
i += esdsBox[i++]; // skip URL
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Intentionally ignoring the OCR esid flag as this was previously reserved and expected to be ignored. There are assets in the wild with malformed esds atoms where this is signaled but should be ignored.

If you have a valid asset where this is present, please file an issue using the Bug Report Template as part of your issue, making sure to include the test stream/page.

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.

1 participant