vpcc bit depth fix

This commit is contained in:
Muaz Ahmad 2023-09-22 15:21:10 +05:00
parent b5775a7477
commit 5e38691180

View file

@ -89,7 +89,7 @@ class MP4Tree {
this.parse_into('vpcC', 12); this.parse_into('vpcC', 12);
const profile = this.data.getUint8(this.idx).toString().padStart(2, "0"); const profile = this.data.getUint8(this.idx).toString().padStart(2, "0");
const level = this.data.getUint8(this.idx + 1).toString(); 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('.')); this.codecs.push(["vp09", profile, level, depth].join('.'));
} }