mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
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:
+2
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user