Skip to content

Commit 9c517a9

Browse files
authored
fix: FRMA generation (#8367)
1 parent ab01bb7 commit 9c517a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/mp4_generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ shaka.util.Mp4Generator = class {
833833
* @private
834834
*/
835835
frma_(codecs) {
836-
const codec = codecs.substring(0, codecs.indexOf('.'));
836+
const codec = codecs.split('.')[0];
837837
const Mp4Generator = shaka.util.Mp4Generator;
838838
const codecNumber = this.stringToCharCode_(codec);
839839
const bytes = new Uint8Array([

0 commit comments

Comments
 (0)