[openchrome-devel] xf86-video-openchrome: src/via_xvmc.c src/via_xv_overlay.c
Kevin Brace
kevinbrace at kemper.freedesktop.org
Fri Dec 20 21:20:01 UTC 2019
src/via_xv_overlay.c | 3 ++-
src/via_xvmc.c | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 59c9d25e2b38ac0d9fc8a8756af5834c01fd1dec
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Fri Dec 20 15:17:51 2019 -0600
Suppress void pointer arithmetic compilation warnings
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_xv_overlay.c b/src/via_xv_overlay.c
index ccf7dd5..776a79e 100644
--- a/src/via_xv_overlay.c
+++ b/src/via_xv_overlay.c
@@ -1210,7 +1210,8 @@ CreateSurface(ScrnInfoPtr pScrn, CARD32 FourCC, CARD16 Width,
pVia->swov.SWDevice.dwSWPhysicalAddr[0] = addr;
pVia->swov.SWDevice.dwSWPhysicalAddr[1] = addr + fbsize;
pVia->swov.SWDevice.lpSWOverlaySurface[0] = buf;
- pVia->swov.SWDevice.lpSWOverlaySurface[1] = buf + fbsize;
+ pVia->swov.SWDevice.lpSWOverlaySurface[1] =
+ (unsigned char*)buf + fbsize;
if (isplanar) {
pVia->swov.SWDevice.dwSWCrPhysicalAddr[0] =
diff --git a/src/via_xvmc.c b/src/via_xvmc.c
index c3c8a8e..f376fd4 100644
--- a/src/via_xvmc.c
+++ b/src/via_xvmc.c
@@ -604,8 +604,8 @@ ViaXvMCCreateSurface(ScrnInfoPtr pScrn, XvMCSurfacePtr pSurf,
yBufSize = stride(ctx->width) * ctx->height;
for (i = 0; i < numBuffers; ++i) {
memset(buf, 0, yBufSize);
- memset(buf + yBufSize, 0x80, yBufSize >> 1);
- buf += bufSize;
+ memset((unsigned *)buf + yBufSize, 0x80, yBufSize >> 1);
+ (unsigned *)buf += bufSize;
}
drm_bo_unmap(pScrn, sPriv->memory_ref);
More information about the openchrome-devel
mailing list