From d48bf9f1c49fbcc82a955c48cf49fb8673ad7859 Mon Sep 17 00:00:00 2001 From: Ashley Manners Date: Wed, 22 Mar 2023 17:48:35 +0000 Subject: [PATCH] fix(HLS): Adding support for DTS Express in HLS fMP4 (#5112) --- AUTHORS | 1 + CONTRIBUTORS | 1 + lib/media/media_source_engine.js | 3 +++ lib/util/manifest_parser_utils.js | 3 +-- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index 38e4de2561..882b236e0f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -97,3 +97,4 @@ Blue Billywig <*@bluebillywig.com> João Nabais Koen Romers Zhenghang Chen +Xperi <*@xperi.com> diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 9bccbbb364..2e42b38a4d 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -137,3 +137,4 @@ Janroel Koppen João Nabais Koen Romers Zhenghang Chen +Ashley Manners diff --git a/lib/media/media_source_engine.js b/lib/media/media_source_engine.js index c6e3a8c41e..6cfe31b035 100644 --- a/lib/media/media_source_engine.js +++ b/lib/media/media_source_engine.js @@ -209,6 +209,9 @@ shaka.media.MediaSourceEngine = class { 'audio/mp4; codecs="ec-3"', 'audio/mp4; codecs="opus"', 'audio/mp4; codecs="flac"', + 'audio/mp4; codecs="dtsc"', // DTS Digital Surround + 'audio/mp4; codecs="dtse"', // DTS Express + 'audio/mp4; codecs="dtsx"', // DTS:X // WebM types 'video/webm; codecs="vp8"', 'video/webm; codecs="vp9"', diff --git a/lib/util/manifest_parser_utils.js b/lib/util/manifest_parser_utils.js index dcc90178d8..33c9b31775 100644 --- a/lib/util/manifest_parser_utils.js +++ b/lib/util/manifest_parser_utils.js @@ -185,8 +185,7 @@ shaka.util.ManifestParserUtils.AUDIO_CODEC_REGEXPS_ = [ /^mp4a/, /^[ae]c-3$/, /^ac-4$/, - /^dts[cx]$/, // DTS Surround Sound - /^[du]dts$/, // DTS Surround Sound + /^dts[cex]$/, // DTS Digital Surround (dtsc), DTS Express (dtse), DTS:X (dtsx) ];