Skip to content

Commit 8a58d6e

Browse files
authored
fix: avoid mismatch with avc1 and hvc1 codec (#400)
1 parent b17c0c4 commit 8a58d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mp4/probe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ getTracks = function(init) {
299299

300300
if (codecBox) {
301301
// https://tools.ietf.org/html/rfc6381#section-3.3
302-
if ((/^[a-z]vc[1-9]$/i).test(track.codec)) {
302+
if ((/^[asm]vc[1-9]$/i).test(track.codec)) {
303303
// we don't need anything but the "config" parameter of the
304304
// avc1 codecBox
305305
codecConfig = codecBox.subarray(78);

0 commit comments

Comments
 (0)