mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 19:33:51 +02:00
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:
+2
-2
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user