build(vaapi): Add vaMapBuffers2() stub (#4581)
This commit is contained in:
parent
c9e0bb864e
commit
4a9f17415b
1 changed files with 12 additions and 0 deletions
|
|
@ -24,6 +24,18 @@ extern "C" {
|
|||
return VA_STATUS_ERROR_UNIMPLEMENTED;
|
||||
}
|
||||
#endif
|
||||
#if !VA_CHECK_VERSION(1, 21, 0)
|
||||
// vaMapBuffer2 stub allows Sunshine built against libva <2.21.0 to link against ffmpeg on libva 2.21.0 or later
|
||||
VAStatus
|
||||
vaMapBuffer2(
|
||||
VADisplay dpy,
|
||||
VABufferID buf_id,
|
||||
void **pbuf,
|
||||
uint32_t flags
|
||||
) {
|
||||
return vaMapBuffer(dpy, buf_id, pbuf);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// local includes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue