@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.
- package/dist/bundles/mediabunny.cjs +2 -6
- package/dist/bundles/mediabunny.min.cjs +17 -17
- package/dist/bundles/mediabunny.min.mjs +21 -21
- package/dist/bundles/mediabunny.mjs +2 -6
- package/dist/bundles/mediabunny.node.cjs +2 -6
- package/dist/modules/src/misc.d.ts.map +1 -1
- package/dist/modules/src/misc.js +3 -1
- package/dist/modules/src/mpeg-ts/mpeg-ts-muxer.d.ts +1 -5
- package/dist/modules/src/mpeg-ts/mpeg-ts-muxer.d.ts.map +1 -1
- package/dist/modules/src/mpeg-ts/mpeg-ts-muxer.js +1 -9
- package/dist/modules/src/mpeg-ts/private-streams-output.d.ts.map +1 -1
- package/dist/modules/src/mpeg-ts/private-streams-output.js +0 -1
- package/dist/modules/src/output-format.d.ts.map +1 -1
- package/dist/modules/src/output-format.js +0 -2
- package/dist/modules/src/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/misc.ts +3 -1
- package/src/mpeg-ts/mpeg-ts-muxer.ts +1 -9
- package/src/mpeg-ts/private-streams-output.ts +0 -1
- package/src/output-format.ts +0 -2
|
@@ -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);
|