Skip to content

Commit

Permalink
fix: PERIOD_FLATTENING_FAILED error with shaka 4.3.4 that did not occ…
Browse files Browse the repository at this point in the history
…ur with shaka 3.1.2 #5183  (#5188)

Fixed handling of manifest with new codecs in later periods by adding
check for empty matchedStreams array in createNewOutputStrems()

Fixes #5183
  • Loading branch information
caridley authored Apr 26, 2023
1 parent 3ff7ba3 commit e855326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/periods.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ shaka.util.PeriodCombiner = class {
// in advance. concat() will add them to the output's MetaSegmentIndex.
}

if (!outputStream.matchedStreams) {
if (!outputStream.matchedStreams || !outputStream.matchedStreams.length) {
// This is not a stream we can build output from, but it may become part
// of another output based on another period's stream.
return null;
Expand Down

0 comments on commit e855326

Please sign in to comment.