Detect Dolby Vision profile 7

In official documentation dvProfile 7 uses dvhe as the codec type.
This commit is contained in:
Stanislav Ionascu 2019-11-14 08:30:30 +01:00
parent 87003b30fc
commit 6d9c707255

View File

@ -36,7 +36,7 @@ public final class DolbyVisionConfig {
int dvProfile = (profileData >> 1);
int dvLevel = ((profileData & 0x1) << 5) | ((data.readUnsignedByte() >> 3) & 0x1F);
String codecsPrefix;
if (dvProfile == 4 || dvProfile == 5) {
if (dvProfile == 4 || dvProfile == 5 || dvProfile == 7) {
codecsPrefix = "dvhe";
} else if (dvProfile == 8) {
codecsPrefix = "hev1";