Skip to content

vd_lavc: derive hwdec surface pool size from VO requirements - #18309

Merged
kasper93 merged 2 commits into
mpv-player:masterfrom
kasper93:fix-hwdec-pool
Jul 28, 2026
Merged

vd_lavc: derive hwdec surface pool size from VO requirements#18309
kasper93 merged 2 commits into
mpv-player:masterfrom
kasper93:fix-hwdec-pool

Conversation

@kasper93

Copy link
Copy Markdown
Member

No description provided.

kasper93 added 2 commits July 27, 2026 20:49
VOs can hold more frames than the requested lookahead. vo_gpu_next's
pl_queue retains past frames for the interpolation mixing window. Let
VOs declare the total number of frames they may reference at the same
time, so fixed hwdec surface pools can be sized accordingly.
Change --hwdec-extra-frames default to auto, which sizes fixed hw frame
pools from the number of frames the VO declares to reference, instead of
a static guess. Fixes pool exhaustion with e.g. --interpolation and a
tscale filter with larger radius.

Fixes: mpv-player#18205
@kasper93
kasper93 merged commit 24c1cc5 into mpv-player:master Jul 28, 2026
35 checks passed
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.

2 participants