Skip to content

Commit

Permalink
fix(HLS): Skip segments without duration and without partial segments (
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored and joeyparrish committed Oct 4, 2023
1 parent 1b62022 commit eedad19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/hls/hls_parser.js
Expand Up @@ -3078,8 +3078,11 @@ shaka.hls.HlsParser = class {
return null;
}
endTime = startTime + duration;
} else {
} else if (partialSegmentRefs.length) {
endTime = partialSegmentRefs[partialSegmentRefs.length - 1].endTime;
} else {
// Skip segments without duration and without partialsegments
return null;
}

if (segmentWithByteRangeOptimization) {
Expand Down

0 comments on commit eedad19

Please sign in to comment.