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

Detect AVC codec precisely to avoid false detecting with HEVC (h265) #400

Merged
merged 1 commit into from
Oct 13, 2021

Conversation

omochi
Copy link
Contributor

@omochi omochi commented Sep 29, 2021

Hi.

New iPhone can easily record HEVC video.
When this library loads such video,
it false detects as AVC1.

HEVC codec signature is hvc1.
So regex matches it.

According to RFC6381,
valid AVC1 codecs are only avc1, avc2, svc1, mvc1, mvc2.

So I shrink pattern [a-z] to [asm].

@brandonocasey brandonocasey merged commit 8a58d6e into videojs:main Oct 13, 2021
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

3 participants