mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 22:03:49 +02:00
Add Opus support to ISOBMFF demuxer
This commit is contained in:
@@ -26,6 +26,13 @@ export class IsobmffReader {
|
||||
return view.getUint16(offset, false);
|
||||
}
|
||||
|
||||
readI16() {
|
||||
const { view, offset } = this.reader.getViewAndOffset(this.pos, this.pos + 2);
|
||||
this.pos += 2;
|
||||
|
||||
return view.getInt16(offset, false);
|
||||
}
|
||||
|
||||
readU24() {
|
||||
const { view, offset } = this.reader.getViewAndOffset(this.pos, this.pos + 3);
|
||||
this.pos += 3;
|
||||
|
||||
Reference in New Issue
Block a user