From 1852c79ba4f69ce817663cbe7f86ea73a433ce38 Mon Sep 17 00:00:00 2001 From: John BoWeRs Date: Tue, 4 Jan 2022 12:43:14 -0700 Subject: [PATCH] Add support for uppercase hex template number formatting as well as lowercase --- .../android/exoplayer2/source/dash/manifest/UrlTemplate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/UrlTemplate.java b/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/UrlTemplate.java index cc3597a33a..a70fdb855c 100644 --- a/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/UrlTemplate.java +++ b/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/UrlTemplate.java @@ -140,7 +140,7 @@ public final class UrlTemplate { // Allowed conversions are decimal integer (which is the only conversion allowed by the // DASH specification) and hexadecimal integer (due to existing content that uses it). // Else we assume that the conversion is missing, and that it should be decimal integer. - if (!formatTag.endsWith("d") && !formatTag.endsWith("x")) { + if (!formatTag.endsWith("d") && !formatTag.endsWith("x") && !formatTag.endsWith("X")) { formatTag += "d"; } identifier = identifier.substring(0, formatTagIndex);