Skip to content

Commit

Permalink
fix: Fix support legacy AVC1 codec with audio
Browse files Browse the repository at this point in the history
  • Loading branch information
cuyl committed Jan 2, 2023
1 parent 5681efe commit 81e7274
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/util/stream_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,12 +459,14 @@ shaka.util.StreamUtils = class {
if (!Capabilities.isTypeSupported(audioFullType)) {
return false;
}
videoCodecs = [videoCodecs, audioCodecs].join(',');
}
const fullType = shaka.util.MimeUtils.getFullOrConvertedType(
video.mimeType, videoCodecs, ContentType.VIDEO);
if (!Capabilities.isTypeSupported(fullType)) {
return false;
}
video.codecs = videoCodecs;
}
const audio = variant.audio;
if (audio) {
Expand All @@ -475,6 +477,7 @@ shaka.util.StreamUtils = class {
if (!Capabilities.isTypeSupported(fullType)) {
return false;
}
audio.codecs = codecs;
}

// See: https://github.com/shaka-project/shaka-player/issues/3380
Expand Down

0 comments on commit 81e7274

Please sign in to comment.