From 5e38691180e848a250848a82e5ae754baa5c3d5a Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Fri, 22 Sep 2023 15:21:10 +0500 Subject: [PATCH] vpcc bit depth fix --- mp4-tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mp4-tree.js b/mp4-tree.js index 4fa241a..185e227 100644 --- a/mp4-tree.js +++ b/mp4-tree.js @@ -89,7 +89,7 @@ class MP4Tree { this.parse_into('vpcC', 12); const profile = this.data.getUint8(this.idx).toString().padStart(2, "0"); const level = this.data.getUint8(this.idx + 1).toString(); - const depth = (this.data.getUint8(this.idx + 2) & 0xf0).toString().padStart(2, "0"); + const depth = (this.data.getUint8(this.idx + 2) >> 4).toString().padStart(2, "0"); this.codecs.push(["vp09", profile, level, depth].join('.')); }