Skip to content

Commit

Permalink
Fix hvcC box writing using incorrect order of operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrews54757 authored Oct 5, 2024
1 parent c5f47a2 commit 43c8b7a
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 43c8b7a

Please sign in to comment.