Skip to content

Commit

Permalink
Allow mp3 data that does not contain ID3
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Walch committed Sep 11, 2020
1 parent 27dbaff commit 26ce694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/demux/mp3demuxer.js
Expand Up @@ -39,7 +39,7 @@ class MP3Demuxer {

// feed incoming data to the front of the parsing pipeline
append (data, timeOffset, contiguous, accurateTimeOffset) {
let id3Data = ID3.getID3Data(data, 0);
let id3Data = ID3.getID3Data(data, 0) || [];
let timestamp = ID3.getTimeStamp(id3Data);
let pts = timestamp !== undefined ? 90 * timestamp : timeOffset * 90000;
let offset = id3Data.length;
Expand Down

0 comments on commit 26ce694

Please sign in to comment.