mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 05:43:50 +02:00
Add metadata tests, fix a few bugs
This commit is contained in:
@@ -60,8 +60,9 @@ export class Mp3Demuxer extends Demuxer {
|
||||
await this.advanceReader();
|
||||
}
|
||||
|
||||
// There has to be a frame if this demuxer got selected
|
||||
assert(this.firstFrameHeader);
|
||||
if (!this.firstFrameHeader) {
|
||||
throw new Error('No valid MP3 frame found.');
|
||||
}
|
||||
|
||||
this.tracks = [new InputAudioTrack(new Mp3AudioTrackBacking(this))];
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user