From 43c8b7ad600a99296902da1209abe5fc9d47092b Mon Sep 17 00:00:00 2001 From: Andrew S Date: Sat, 5 Oct 2024 01:45:02 -0500 Subject: [PATCH] Fix hvcC box writing using incorrect order of operations --- src/writing/hvcC.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/writing/hvcC.js b/src/writing/hvcC.js index 21efd253..e6963845 100644 --- a/src/writing/hvcC.js +++ b/src/writing/hvcC.js @@ -12,8 +12,8 @@ BoxParser.hvcCBox.prototype.write = function(stream) { this.writeHeader(stream); stream.writeUint8(this.configurationVersion); - stream.writeUint8(this.general_profile_space << 6 + - this.general_tier_flag << 5 + + stream.writeUint8((this.general_profile_space << 6) + + (this.general_tier_flag << 5) + this.general_profile_idc); stream.writeUint32(this.general_profile_compatibility); stream.writeUint8Array(this.general_constraint_indicator);