Re: Linux 2.6.9-rc2

Gerd Knorr
2004-09-15T07:20:40Z

> 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;