Skip to content

Commit

Permalink
fix: Filter unsupported H.264 streams in Xbox (#4493)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored and JulianDomingo committed Oct 7, 2022
1 parent d5ebe16 commit ea02766
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/util/stream_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,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;
Expand Down

0 comments on commit ea02766

Please sign in to comment.