Skip to content

Commit

Permalink
fix: PERIOD_FLATTENING_FAILED error with shaka 4.3.x that did not occ…
Browse files Browse the repository at this point in the history
…ur with shaka 3.1.2 (#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 and joeyparrish committed Apr 27, 2023
1 parent c5cbdf8 commit a180b28
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 @@ -728,7 +728,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 a180b28

Please sign in to comment.