1 --- xv-3.10a/xvimage.c.orig 2006-10-18 23:40:36.303520000 +0200
2 +++ xv-3.10a/xvimage.c 2006-10-18 23:50:53.622100250 +0200
3 @@ -1721,14 +1721,14 @@
7 - unsigned short *imagedata, *ip;
8 + unsigned char *imagedata, *ip;
11 - imagedata = (unsigned short *) malloc((size_t) (2*wide*high));
12 + imagedata = (unsigned char *) malloc((size_t) (2*wide*high));
13 if (!imagedata) FatalError("couldn't malloc imagedata");
15 xim = XCreateImage(theDisp,theVisual,dispDEEP,ZPixmap,0,
16 - (char *) imagedata, wide, high, 16, 0);
17 + imagedata, wide, high, 16, 0);
18 if (!xim) FatalError("couldn't create xim!");
20 if (dispDEEP == 12 && xim->bits_per_pixel != 16) {
22 if (dithpic) xcol = ((*pp) ? white : black) & 0xffff;
23 else xcol = xcolors[*pp] & 0xffff;
25 - *((unsigned char *)ip)++ = (xcol>>8) & 0xff;
26 - *((unsigned char *)ip)++ = (xcol) & 0xff;
27 + *ip++ = (xcol>>8) & 0xff;
28 + *ip++ = (xcol) & 0xff;
33 if (dithpic) xcol = ((*pp) ? white : black) & 0xffff;
34 else xcol = xcolors[*pp];
36 - *((unsigned char *)ip)++ = (xcol) & 0xff;
37 - *((unsigned char *)ip)++ = (xcol>>8) & 0xff;
38 + *ip++ = (xcol) & 0xff;
39 + *ip++ = (xcol>>8) & 0xff;