[Pchdtv] patch to make dtvscan work on 64 bin machines

Greg Johnson gjohnson at superweasel.com
Sun Mar 20 17:11:34 PST 2005


dtvscan didn't work for me on Athlon64.  "unsigned long" was used where
itshouldn't ave been.  Here's a patch that makes it work for me.

Thanks,

Greg



cvs diff -u dtvscan.c 
Index: dtvscan.c
===================================================================
RCS file: /cvs/pchdtv/pchdtv-utils/dtvscan.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 dtvscan.c
--- dtvscan.c   2 Mar 2005 07:04:49 -0000       1.1.1.1
+++ dtvscan.c   21 Mar 2005 01:16:30 -0000
@@ -838,7 +838,7 @@
  *  if CRCs match, otherwise rtn "ERROR"
  */
 
-static unsigned long int g_vec = 0x04C11DB6 ;
+static unsigned int g_vec = 0x04C11DB6 ;
 
 static int check_crc(buf,len,crc)
 unsigned char *buf;
@@ -848,7 +848,7 @@
    int               j;
    unsigned int      length;
    unsigned char     data_bit, next_byte;
-   unsigned long int shift_reg;
+   unsigned int shift_reg;
 
    shift_reg = 0xFFFFFFFF;
    length = len;
@@ -2586,7 +2586,7 @@
     struct       vct_item       *vct_item_ptr;
 
     ioctlval = ioctl(device,VIDIOCGUNIT,&unit);
-    fprintf (stderr, "    video unit v4l minor = %d\n     dtv unit v4l minor = %d\n",unit.video,unit.dtv);
+    //fprintf (stderr, "    video unit v4l minor = %d\n     dtv unit v4l minor = %d\n",unit.video,unit.dtv);
 
     // scan channels
     for(i=0;i<69;i++)


More information about the Pchdtv mailing list