Merge pull request #369 from Theredbt/fix/recognize-sidx-mp4-segment

fix(input-format): recognise CMAF segments that start with sidx
This commit is contained in:
David P.
2026-05-13 17:29:28 +02:00
committed by GitHub
2 changed files with 24 additions and 2 deletions
+2 -1
View File
@@ -120,7 +120,8 @@ export class Mp4InputFormat extends IsobmffInputFormat {
if (slice instanceof Promise) slice = await slice;
if (!slice) return false;
return readAscii(slice, 4) === 'moof'; // Seen in HLS for example
const fourCc = readAscii(slice, 4);
return fourCc === 'moof' || fourCc === 'sidx'; // Seen in HLS for example
}
get name() {