@torrent-tv/proxy 2.96.7 → 2.96.8
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/package.json
CHANGED
|
@@ -372,6 +372,14 @@ export class AviContainer extends Container {
|
|
|
372
372
|
const stream = index.packets[track.trackNumber];
|
|
373
373
|
packets.declareTrack(track.trackNumber, { type: "audio", codecId: track.codecId,
|
|
374
374
|
codecRanges: streams[track.trackNumber].codecRanges });
|
|
375
|
+
// The index says how many packets there are, so the memory they take is
|
|
376
|
+
// asked for at once. Asked for block by block, a refusal named one
|
|
377
|
+
// block, the table was discarded and built again for the next one:
|
|
378
|
+
// field 2026-10-10, 3485 refusals of 64 KB for a two-hour film's
|
|
379
|
+
// soundtrack, and no soundtrack encoder in three minutes.
|
|
380
|
+
let count = 0;
|
|
381
|
+
for (let at = 0; at < stream.count; at++) if (stream.lengths[at]) count++;
|
|
382
|
+
packets.reservePackets(track.trackNumber, count);
|
|
375
383
|
let previous = -1;
|
|
376
384
|
const append = (end) => {
|
|
377
385
|
packets.append(track.trackNumber, { pts: stream.times[previous], duration: Math.max(0, end - stream.times[previous]),
|