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:
parent
c30cb29248
commit
aed8aafdbf
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue