Re: Linux 2.6.9-rc2

From: Gerd Knorr
Date: Wed Sep 15 2004 - 02:21:56 EST


> I found the change that crashes my computer. This patch is enough to
> fix it for me:
>
> - if (!yoffset)
> - chroma = (line & 1) == 0;
> - else
> - chroma = (line & 1) == 1;

Does the one below work as well?

Gerd

RCS file: /home/cvsroot/video4linux/bttv-risc.c,v
retrieving revision 1.4
diff -u -p -r1.4 bttv-risc.c
--- bttv-risc.c 23 Aug 2004 10:38:54 -0000 1.4
+++ bttv-risc.c 15 Sep 2004 07:05:44 -0000
@@ -154,15 +154,15 @@ bttv_risc_planar(struct bttv *btv, struc
break;
case 1:
if (!yoffset)
- chroma = (line & 1) == 0;
+ chroma = ((line & 1) == 0);
else
- chroma = (line & 1) == 1;
+ chroma = ((line & 1) == 1);
break;
case 2:
if (!yoffset)
- chroma = (line & 3) == 0;
+ chroma = ((line & 3) == 0);
else
- chroma = (line & 3) == 2;
+ chroma = ((line & 3) == 2);
break;
default:
chroma = 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/