Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Jun 14, 2023
1 parent 9b255e0 commit df250bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/hls/hls_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2865,6 +2865,8 @@ shaka.hls.HlsParser = class {
let pStartByte = 0;
let pEndByte = null;
if (item.name == 'EXT-X-PRELOAD-HINT') {
// Note: BYTERANGE-START without BYTERANGE-LENGTH is being ignored at
// parsing time.
// A preload hinted partial segment may have byterange start info.
const pByterangeStart = item.getAttributeValue('BYTERANGE-START');
pStartByte = pByterangeStart ? Number(pByterangeStart) : 0;
Expand Down

0 comments on commit df250bb

Please sign in to comment.