Support AVC in Annex B format, add AVCDecoderConfigurationRecord extraction logic, add Annex B to AVCC converter, add support for Matroska Clusters with undefined size, & a couple other improvements

This commit is contained in:
Vanilagy
2025-05-11 20:47:37 +02:00
parent 7ae47c0b23
commit f1eed5aa9e
15 changed files with 795 additions and 263 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ export class MatroskaInputFormat extends InputFormat {
}
const dataSize = ebmlReader.readElementSize();
if (dataSize === -1) {
if (dataSize === null) {
return false; // Miss me with that shit
}
@@ -129,7 +129,7 @@ export class MatroskaInputFormat extends InputFormat {
while (ebmlReader.pos < startPos + dataSize) {
const { id, size } = ebmlReader.readElementHeader();
const dataStartPos = ebmlReader.pos;
if (size === -1) return false;
if (size === null) return false;
switch (id) {
case EBMLId.EBMLVersion: {