Skip to content

Skip VAAPI hwcontext bindings on Windows - #134

Open
inayayousfi wants to merge 1 commit into
zmwangx:masterfrom
inayayousfi:fix/windows-vaapi-hwcontext
Open

inayayousfi wants to merge 1 commit into
zmwangx:masterfrom
inayayousfi:fix/windows-vaapi-hwcontext

Conversation

@inayayousfi

Copy link
Copy Markdown

inayayousfi directed the work and made every decision.
openai/gpt-5.6-sol, running in OpenCode, carried inayayousfi's decisions out.

hwcontext_wrapper.h includes the VAAPI hardware context whenever the FFmpeg header is installed. A Windows vcpkg FFmpeg package can provide hwcontext_vaapi.h without its Linux-only va/va_x11.h dependency, so bindgen fails while parsing a hardware API that Windows cannot use.

Skip the VAAPI wrapper when _WIN32 is defined. The D3D11VA and D3D12VA bindings remain enabled.

Tested by preprocessing the wrapper with _WIN32 defined and the same stub include path used by the build script. The same change also builds downstream on x86_64-pc-windows-msvc with static FFmpeg 8.1.2 from vcpkg.

inayayousfi directed the work and made every decision.
openai/gpt-5.6-sol, running in OpenCode, carried inayayousfi's decisions out.
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