Skip to content

Commit

Permalink
Merge pull request #409 from Andrews54757/patch-2
Browse files Browse the repository at this point in the history
Fix hvcC box writing using incorrect order of operations
  • Loading branch information
rbouqueau authored Oct 6, 2024
2 parents c5f47a2 + 43c8b7a commit 2c15bfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/writing/hvcC.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2c15bfd

Please sign in to comment.