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 Level and BitDepth in AV1 Codec String #918

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Source/C++/Core/Ap4SampleDescription.cpp
Expand Up @@ -825,7 +825,7 @@ AP4_Av1SampleDescription::AP4_Av1SampleDescription(AP4_UI32 format,
+---------------------------------------------------------------------*/
AP4_Result
AP4_Av1SampleDescription::GetCodecString(AP4_String& codec) {
AP4_UI08 bit_depth = 10;
AP4_UI08 bit_depth = (this->GetHighBitDepth() == 0) ? 8: (this->GetTwelveBit() == 0 ? 10 : 12);
AP4_UI08 color_primaries = 1;
AP4_UI08 transfer_characteristics = 1;
AP4_UI08 matrix_coefficients = 1;
Expand All @@ -838,7 +838,7 @@ AP4_Av1SampleDescription::GetCodecString(AP4_String& codec) {
"%s.%d.%02d%c.%02d.%d.%d%d%d.%02d.%02d.%02d.%d",
coding,
this->GetSeqProfile(),
this->GetSeqLevelIdx0() >> 4,
this->GetSeqLevelIdx0(),
this->GetSeqTier0() == 0 ? 'M' : 'H',
bit_depth,
this->GetMonochrome(),
Expand Down