From 4fd078e23c4148a46a2ddf34165e14c0f8056e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Tue, 28 Feb 2023 13:16:55 +0100 Subject: [PATCH] fix: Fix video/mp2t mimetype conversion. (#5039) Related to https://github.com/shaka-project/shaka-player/issues/5036 --- lib/util/mime_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/mime_utils.js b/lib/util/mime_utils.js index 90556b8cb9..efaa6c211f 100644 --- a/lib/util/mime_utils.js +++ b/lib/util/mime_utils.js @@ -50,7 +50,7 @@ shaka.util.MimeUtils = class { return shaka.media.Transmuxer.convertTsCodecs( contentType, fullMimeType); } - } else if (contentType == ContentType.AUDIO) { + } else if (mimeType != 'video/mp2t' && contentType == ContentType.AUDIO) { // video/mp2t is the correct mime type for TS audio, so only replace the // word "video" with "audio" for non-TS audio content. return fullMimeType.replace('video', 'audio');