Skip to content

Improve HEVC codec parsing #7177

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

Merged
merged 1 commit into from
Apr 15, 2025
Merged

Improve HEVC codec parsing #7177

merged 1 commit into from
Apr 15, 2025

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Apr 12, 2025

This PR will...

Improve HEVC codec parsing by writing profile compatibility flag in reverse bit order.

Why is this Pull Request needed?

The codec string parsed from hvcC boxes in mp4 init segments contained extra zeros (noticed in #7114). This change fixes the issue:

before "hvc1.1.60000000.L150" and after "hvc1.1.6.L150"

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

This does not appear to have impacted support checks or SourceBuffer creation on most platforms. Of the issues where these media parsed codecs were noted, none of the failures were a result of the codec string parsing as far as I know.

Resolves issues:

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.6.3 milestone Apr 12, 2025
@robwalch robwalch merged commit 509fe61 into master Apr 15, 2025
24 of 27 checks passed
@robwalch robwalch deleted the bugfix/hvcc-box-parsing branch April 15, 2025 23:01
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