lkml.org 
[lkml]   [2004]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Linux 2.6.9-rc2
> 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:06    [W:1.950 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site