From dfdb3d3722743bd2ad12bdd175d24b342b510d93 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 10 Jul 2024 18:33:33 +0200 Subject: [PATCH] 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 --- Xext/xvdisp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Xext/xvdisp.c b/Xext/xvdisp.c index fb49fb6ed..0be6c26b6 100644 --- a/Xext/xvdisp.c +++ b/Xext/xvdisp.c @@ -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);