Skip to content

Commit

Permalink
Merge branch 'patch/v0.14.x' into upstream_hls.js/master
Browse files Browse the repository at this point in the history
* patch/v0.14.x:
  Allow mp3 data that does not contain ID3 #3037
  • Loading branch information
Rob Walch committed Sep 11, 2020
2 parents 194da85 + 26ce694 commit f038fb2
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 f038fb2

Please sign in to comment.