Skip to content

Commit

Permalink
Disable LibAV multithreading, again
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 committed Jan 29, 2025
1 parent 6735f81 commit e6e12a5
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 e6e12a5

Please sign in to comment.