Skip to content

Commit

Permalink
Just use userDataBytes directly
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDallas committed Oct 14, 2019
1 parent 22f5ee4 commit bdd99cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/demux/tsdemuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ class TSDemuxer {
uuid: uuidStrArray.join(''),
userDataBytes: userDataPayloadBytes,
get userData () {
return utf8ArrayToStr(new Uint16Array(this.userDataBytes).buffer);
return utf8ArrayToStr(this.userDataBytes);
}
});
}
Expand Down

0 comments on commit bdd99cc

Please sign in to comment.