Skip to content

Share one SwsContext per thread, fixes #2320 - #2379

Merged
WyattBlue merged 1 commit into
mainfrom
patch
Aug 15, 2026
Merged

Share one SwsContext per thread, fixes #2320#2379
WyattBlue merged 1 commit into
mainfrom
patch

Conversation

@WyattBlue

Copy link
Copy Markdown
Member

VideoFrame.reformat() kept a VideoReformatter on the frame, so every converted frame owned a SwsContext for its lifetime. Hold it in a thread local instead.

`VideoFrame.reformat()` kept a `VideoReformatter` on the frame, so every
converted frame owned a SwsContext for its lifetime. Hold it in a thread
local instead.
@WyattBlue
WyattBlue merged commit 2ec99ed into main Aug 15, 2026
8 checks passed
@WyattBlue
WyattBlue deleted the patch branch August 15, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant