|
From: <lin...@us...> - 2004-10-23 08:15:10
|
Update of /cvsroot/dvbtools/dvbsubs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24154 Modified Files: dvbtextsubs.c Log Message: Add (undocumented) -a option to dump teletext page numbers Index: dvbtextsubs.c =================================================================== RCS file: /cvsroot/dvbtools/dvbsubs/dvbtextsubs.c,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** dvbtextsubs.c 9 Jul 2004 09:17:47 -0000 1.14 --- dvbtextsubs.c 23 Oct 2004 08:14:52 -0000 1.15 *************** *** 76,79 **** --- 76,80 ---- int debug=0; + int analyse=0; int no_pts_warning=0; int keeppts=0; *************** *** 418,422 **** // fprintf(stderr,"the_page=%04x\n",the_page); // fprintf(stdout,"In set_line - mag=%d, line=%d!\n",mag,line); ! // if (line==0) { fprintf(stderr,"mag=%d, page=%02x\n",mag,unham(data[0],data[1])); } if (mag!=((the_page&0x0f00)>>8)) { return; --- 419,423 ---- // fprintf(stderr,"the_page=%04x\n",the_page); // fprintf(stdout,"In set_line - mag=%d, line=%d!\n",mag,line); ! if ((analyse) && (line==0) && (unham(data[0],data[1])!=0xff)) { fprintf(stderr,"mag=%d, page=%02x\n",mag,unham(data[0],data[1])); } if (mag!=((the_page&0x0f00)>>8)) { return; *************** *** 591,594 **** --- 592,597 ---- if (strcmp(argv[i],"-d")==0) { debug=1; + } else if (strcmp(argv[i],"-a")==0) { + analyse=1; } else if (strcmp(argv[i],"-vdr")==0) { pes_format=1; |