Skip to content

Commit

Permalink
perf(transmuxer): Improve performance on video transmuxing (#6364)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Apr 8, 2024
1 parent f54433e commit 5143ef4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/transmuxer/h264.js
Expand Up @@ -267,8 +267,8 @@ shaka.transmuxer.H264 = class {
naluLength[1] = (size >> 16) & 0xff;
naluLength[2] = (size >> 8) & 0xff;
naluLength[3] = size & 0xff;
nalusData.push(shaka.util.Uint8ArrayUtils.concat(
naluLength, nalu.fullData));
nalusData.push(naluLength);
nalusData.push(nalu.fullData);
}
}
if (!nalusData.length) {
Expand Down
4 changes: 2 additions & 2 deletions lib/transmuxer/h265.js
Expand Up @@ -652,8 +652,8 @@ shaka.transmuxer.H265 = class {
naluLength[1] = (size >> 16) & 0xff;
naluLength[2] = (size >> 8) & 0xff;
naluLength[3] = size & 0xff;
nalusData.push(shaka.util.Uint8ArrayUtils.concat(
naluLength, nalu.fullData));
nalusData.push(naluLength);
nalusData.push(nalu.fullData);
}
}
if (!nalusData.length) {
Expand Down

0 comments on commit 5143ef4

Please sign in to comment.