Detect Dolby Vision profile 7

In official documentation dvProfile 7 uses dvhe as the codec type.
parent 87003b30
...@@ -36,7 +36,7 @@ public final class DolbyVisionConfig { ...@@ -36,7 +36,7 @@ public final class DolbyVisionConfig {
int dvProfile = (profileData >> 1); int dvProfile = (profileData >> 1);
int dvLevel = ((profileData & 0x1) << 5) | ((data.readUnsignedByte() >> 3) & 0x1F); int dvLevel = ((profileData & 0x1) << 5) | ((data.readUnsignedByte() >> 3) & 0x1F);
String codecsPrefix; String codecsPrefix;
if (dvProfile == 4 || dvProfile == 5) { if (dvProfile == 4 || dvProfile == 5 || dvProfile == 7) {
codecsPrefix = "dvhe"; codecsPrefix = "dvhe";
} else if (dvProfile == 8) { } else if (dvProfile == 8) {
codecsPrefix = "hev1"; codecsPrefix = "hev1";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment