From e6e12a5201b8838348b13f9ec8975583730f76a3 Mon Sep 17 00:00:00 2001 From: Long Nguyen Date: Wed, 29 Jan 2025 15:41:38 +0700 Subject: [PATCH] Disable LibAV multithreading, again Demuxing probably doesn't use multiple threads anyway, and it might compete for threads with other stuff, namely encryption --- src/media/LibavDemuxer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media/LibavDemuxer.ts b/src/media/LibavDemuxer.ts index 499e552..c57231b 100644 --- a/src/media/LibavDemuxer.ts +++ b/src/media/LibavDemuxer.ts @@ -178,7 +178,7 @@ function h265AddParamSets(frame: Buffer, paramSets: H265ParamSets) { } const idToStream = new Map(); -const libavPromise = LibAV.LibAV({ yesthreads: true }); +const libavPromise = LibAV.LibAV(); libavPromise.then((libav) => { libav.onread = (id) => { idToStream.get(id)?.resume();