Skip to content

Commit

Permalink
Disable LibAV multithreading, again (#144)
Browse files Browse the repository at this point in the history
Demuxing probably doesn't use multiple threads anyway, and it might compete for threads with other stuff, namely encryption
  • Loading branch information
longnguyen2004 authored Jan 29, 2025
1 parent 6735f81 commit 8348cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/media/LibavDemuxer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function h265AddParamSets(frame: Buffer, paramSets: H265ParamSets) {
}

const idToStream = new Map<string, Readable>();
const libavPromise = LibAV.LibAV({ yesthreads: true });
const libavPromise = LibAV.LibAV();
libavPromise.then((libav) => {
libav.onread = (id) => {
idToStream.get(id)?.resume();
Expand Down

0 comments on commit 8348cd3

Please sign in to comment.