From 15edd280fc3961316619c6b8debc292889567976 Mon Sep 17 00:00:00 2001 From: Alvaro Velad Galvan Date: Thu, 17 Nov 2022 18:18:29 +0100 Subject: [PATCH] Add comment with example --- lib/util/stream_utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util/stream_utils.js b/lib/util/stream_utils.js index 96ce590ec4..10a5d677b0 100644 --- a/lib/util/stream_utils.js +++ b/lib/util/stream_utils.js @@ -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() + '.';