@ahmedrowaihi/mediabunny 1.65.2-beta.627 → 1.65.2-beta.652

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.
@@ -1145,7 +1145,7 @@ var Mediabunny = (() => {
1145
1145
  return Math.floor(value / multiple) * multiple;
1146
1146
  };
1147
1147
  var floorToDivisor = (value, multiple) => {
1148
- return Math.floor(value * multiple) / multiple;
1148
+ return Math.floor(roundIfAlmostInteger(value * multiple)) / multiple;
1149
1149
  };
1150
1150
  var ilog = (x) => {
1151
1151
  let ret = 0;
@@ -45869,11 +45869,7 @@ ${cue.notes ?? ""}`;
45869
45869
  this.writePrivatePes(this.privatePesQueue.shift());
45870
45870
  }
45871
45871
  }
45872
- /**
45873
- * One private PES packet: `private_stream_1`, a stated `PES_packet_length` and a PTS, then the
45874
- * payload unchanged. EN 300 472 4.1 requires the length stated and the data aligned, and a reader
45875
- * needs the length to tell a whole payload from one a buffer cut short.
45876
- */
45872
+ /** EN 300 472 4.1 requires the length stated and the data aligned, so neither is left defaulted. */
45877
45873
  writePrivatePes(entry) {
45878
45874
  const header = new Uint8Array(14);
45879
45875
  const view2 = toDataView(header);