Fix fragment reading bug

This commit is contained in:
Vanilagy
2025-01-02 18:16:06 +01:00
parent d476c42424
commit af26b4aab4
4 changed files with 45 additions and 23 deletions
+6
View File
@@ -62,6 +62,12 @@ export class IsobmffReader {
return high * 0x100000000 + low;
}
readI64() {
const high = this.readI32();
const low = this.readU32();
return high * 0x100000000 + low;
}
readF64() {
const { view, offset } = this.reader.getViewAndOffset(this.pos, this.pos + 8);
this.pos += 8;