drm/vaapi: Fix pointer-size confusion

The API expects uintptr_t (good!), but we're passing an unsigned long
here. Make the conversion explicit.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2021-06-22 02:09:21 +01:00
parent c30cb29248
commit aed8aafdbf
1 changed files with 1 additions and 1 deletions

View File

@ -1018,7 +1018,7 @@ create_surface_from_fd(struct vaapi_recorder *r, int prime_fd,
va_attrib_extbuf.num_planes = 1;
va_attrib_extbuf.pitches[0] = stride;
va_attrib_extbuf.offsets[0] = 0;
va_attrib_extbuf.buffers = &buffer_fd;
va_attrib_extbuf.buffers = (uintptr_t *) &buffer_fd;
va_attrib_extbuf.num_buffers = 1;
va_attrib_extbuf.flags = 0;
va_attrib_extbuf.private_data = NULL;