@ahmedrowaihi/mediabunny 1.43.2-beta.13 → 1.43.2-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7135,7 +7135,11 @@ var Mediabunny = (() => {
7135
7135
  if (this.input._formatOptions.isobmff?._suppressPsshParsing) {
7136
7136
  break;
7137
7137
  }
7138
- const psshBox = parsePsshBoxContents(readBytes(slice, boxInfo.contentSize));
7138
+ const bytes2 = readBytes(slice.slice(startPos, boxInfo.totalSize), boxInfo.totalSize);
7139
+ const psshBox = {
7140
+ ...parsePsshBoxContents(readBytes(slice, boxInfo.contentSize)),
7141
+ bytes: bytes2
7142
+ };
7139
7143
  if (this.currentFragment) {
7140
7144
  this.currentFragment.psshBoxes.push(psshBox);
7141
7145
  } else if (!this.currentTrack) {
@@ -17576,7 +17580,10 @@ var Mediabunny = (() => {
17576
17580
  const bytes2 = base64ToBytes(uri.slice(commaIndex + 1));
17577
17581
  if (bytes2.length >= 8 && bytes2[4] === 112 && bytes2[5] === 115 && bytes2[6] === 115 && bytes2[7] === 104) {
17578
17582
  const size = toDataView(bytes2).getUint32(0);
17579
- psshBox = parsePsshBoxContents(bytes2.subarray(8, Math.min(size, bytes2.length)));
17583
+ psshBox = {
17584
+ ...parsePsshBoxContents(bytes2.subarray(8, Math.min(size, bytes2.length))),
17585
+ bytes: bytes2
17586
+ };
17580
17587
  }
17581
17588
  }
17582
17589
  currentKey = {