From 2237b03ac93ba430e42cb80cbc79d29f455fbe01 Mon Sep 17 00:00:00 2001 From: Alvaro Velad Galvan Date: Mon, 19 Sep 2022 16:54:18 +0200 Subject: [PATCH] fix: Filter unsupported H.264 streams in Xbox --- lib/util/stream_utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util/stream_utils.js b/lib/util/stream_utils.js index 633fc206c0..6b305d9757 100644 --- a/lib/util/stream_utils.js +++ b/lib/util/stream_utils.js @@ -474,7 +474,8 @@ shaka.util.StreamUtils = class { if (shaka.util.Platform.isXboxOne() && video && ((video.width && video.width > 1920) || (video.height && video.height > 1080)) && - video.codecs.includes('avc1.')) { + (video.codecs.includes('avc1.') || + video.codecs.includes('avc3.'))) { shaka.log.debug('Dropping variant - not compatible with platform', shaka.util.StreamUtils.getVariantSummaryString_(variant)); return false;