Skip to content

Commit

Permalink
fix: avoid mismatch with avc1 and hvc1 codec (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
omochi committed Oct 13, 2021
1 parent b17c0c4 commit 8a58d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mp4/probe.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ getTracks = function(init) {

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

0 comments on commit 8a58d6e

Please sign in to comment.