Skip to content

Commit

Permalink
fix(transmuxer): implement similar change for h265
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kohut committed Dec 7, 2023
1 parent 7835a0e commit 6dfebf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transmuxer/h265.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ shaka.transmuxer.H265 = class {
let isKeyframe = false;
const nalusData = [];
let hvcSample = false;
const size = nalu.fullData.byteLength;
for (const nalu of nalus) {
let push = false;
switch (nalu.type) {
Expand Down Expand Up @@ -630,7 +631,6 @@ shaka.transmuxer.H265 = class {
break;
}
if (hvcSample && push) {
const size = nalu.fullData.byteLength;
const naluLength = new Uint8Array(4);
naluLength[0] = (size >> 24) & 0xff;
naluLength[1] = (size >> 16) & 0xff;
Expand Down

0 comments on commit 6dfebf3

Please sign in to comment.