Skip to content

Commit

Permalink
fix: do not append blank codec strings (#6093)
Browse files Browse the repository at this point in the history
Resolves #6092
  • Loading branch information
littlespex committed Jan 12, 2024
1 parent 9b9ff16 commit ed0aa22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/util/periods.js
Expand Up @@ -724,7 +724,9 @@ shaka.util.PeriodCombiner = class {
// Add the codec of this stream to the output stream's codecs.
const codecs = new Set(outputStream.codecs.split(','));
for (const codec of match.codecs.split(',')) {
codecs.add(codec);
if (codec) {
codecs.add(codec);
}
}
const PeriodCombiner = shaka.util.PeriodCombiner;
outputStream.codecs = PeriodCombiner.filterDuplicateCodecs_(
Expand Down

0 comments on commit ed0aa22

Please sign in to comment.