Xext: xv: use int32_t in ProcXvQueryImageAttributes()

Make sure it's really a 32bit integer, since we're hard-casting since
we're relying on the buffer being made of 32bit integers (and treating
it like CARD32's). If we encounter an arch, where int isn't 32bits,
the compiler should shout out loud now.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-07-10 18:33:33 +02:00
parent cf68881ab6
commit dfdb3d3722

View File

@ -1019,8 +1019,8 @@ ProcXvQueryImageAttributes(ClientPtr client)
CARD16 width, height;
XvImagePtr pImage = NULL;
XvPortPtr pPort;
int *offsets;
int *pitches;
int32_t *offsets;
int32_t *pitches;
int planeLength;
REQUEST(xvQueryImageAttributesReq);