File avifile-xf86dga.patch of Package avifile

Index: avifile-0.7-0.7.45/samples/qtvidcap/kv4lsetup.cpp
===================================================================
--- avifile-0.7-0.7.45.orig/samples/qtvidcap/kv4lsetup.cpp
+++ avifile-0.7-0.7.45/samples/qtvidcap/kv4lsetup.cpp
@@ -229,7 +229,7 @@ int main(int argc, char* argv[])
     if (XF86DGAQueryExtension(dpy, &foo, &bar)) {
 	XF86DGAQueryDirectVideo(dpy, XDefaultScreen(dpy),&flags);
 	if (flags & XF86DGADirectPresent) {
-	    XF86DGAGetVideoLL(dpy,XDefaultScreen(dpy),(int*)&base,&width,&foo,&bar);
+	    XF86DGAGetVideoLL(dpy,XDefaultScreen(dpy),(unsigned int*)&base,&width,&foo,&bar);
 	    set_bpl  = width * set_bpp/8;
 	    set_base = base;
 	    if (verbose == 2) {
Index: avifile-0.7-0.7.45/samples/qtvidcap/v4lxif.cpp
===================================================================
--- avifile-0.7-0.7.45.orig/samples/qtvidcap/v4lxif.cpp
+++ avifile-0.7-0.7.45/samples/qtvidcap/v4lxif.cpp
@@ -1115,7 +1115,7 @@ v4l1if::v4l1if(const char* mem, const ch
 		     major,minor, XDGA_MAJOR_VERSION,XDGA_MINOR_VERSION);
 		have_dga= false;
 	    } else {
-		XF86DGAGetVideoLL(disp, DefaultScreen(disp), (int*)&base, &width, &bank, &ram);
+		XF86DGAGetVideoLL(disp, DefaultScreen(disp), (unsigned int*)&base, &width, &bank, &ram);
 		if (!base)
 		    avml(AVML_WARN,
 			 "v4l1: can not allocate frame buffer base: %p\n", base);