Skip to content

Commit

Permalink
Add comment with example
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Nov 17, 2022
1 parent 0d2db1c commit 15edd28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/util/stream_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,7 @@ shaka.util.StreamUtils = class {
if (codec.includes('avc1')) {
// Convert avc1 codec string from RFC-4281 to RFC-6381 for
// MediaSource.isTypeSupported
// Example, convert avc1.66.30 to avc1.42001e (0x42 == 66 and 0x1e == 30)
const avcdata = codec.split('.');
if (avcdata.length == 3) {
let result = avcdata.shift() + '.';
Expand Down

0 comments on commit 15edd28

Please sign in to comment.