From 6d9c707255eb369be2b2509db910029f9034fbf7 Mon Sep 17 00:00:00 2001 From: Stanislav Ionascu Date: Thu, 14 Nov 2019 08:30:30 +0100 Subject: [PATCH] Detect Dolby Vision profile 7 In official documentation dvProfile 7 uses dvhe as the codec type. --- .../com/google/android/exoplayer2/video/DolbyVisionConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/main/java/com/google/android/exoplayer2/video/DolbyVisionConfig.java b/library/core/src/main/java/com/google/android/exoplayer2/video/DolbyVisionConfig.java index 3aeff9d553..3a13540e12 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/video/DolbyVisionConfig.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/video/DolbyVisionConfig.java @@ -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";