Bump TurboRes, use desiredSize, bump patch

This commit is contained in:
Vanilagy
2026-07-02 20:18:25 +02:00
parent 6812cf1643
commit 72427b8b39
10 changed files with 28 additions and 29 deletions
+5 -9
View File
@@ -83,16 +83,12 @@ class ProresDecoder extends CustomVideoDecoder {
async decode(packet: EncodedPacket) {
assert(this.decoder);
if (this.decoder.useSharedMemory) {
await this.runDecode(packet);
} else {
while (this.decoder.decodeQueueSize >= this.decoder.concurrency) {
await this.decoder.dequeued;
}
void this.runDecode(packet)
.catch(error => this.onError(error));
while (this.decoder.desiredSize <= 0) {
await this.decoder.dequeued;
}
void this.runDecode(packet)
.catch(error => this.onError(error));
}
private async runDecode(packet: EncodedPacket) {