/[tivodecode]/tivodecode/trunk/tivodecode.c
ViewVC logotype

Diff of /tivodecode/trunk/tivodecode.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 65 by jeremyd2019, Tue Dec 12 20:56:19 2006 UTC revision 66 by jeremyd2019, Wed Dec 13 00:43:25 2006 UTC
# Line 40  static int hread_wrapper (void * mem, int size, void * Line 40  static int hread_wrapper (void * mem, int size, void *
40      return (int)hread (mem, size, (happy_file *)fh);      return (int)hread (mem, size, (happy_file *)fh);
41  }  }
42    
43    static int fwrite_wrapper (void * mem, int size, void * fh)
44    {
45        return (int)fwrite (mem, 1, size, (FILE *)fh);
46    }
47    
48  static struct option long_options[] = {  static struct option long_options[] = {
49      {"mak", 1, 0, 'm'},      {"mak", 1, 0, 'm'},
50      {"out", 1, 0, 'o'},      {"out", 1, 0, 'o'},
# Line 243  int main(int argc, char *argv[]) Line 248  int main(int argc, char *argv[])
248      {      {
249          if ((marker & 0xFFFFFF00) == 0x100)          if ((marker & 0xFFFFFF00) == 0x100)
250          {          {
251              int ret = process_frame(byte, &turing, htell(hfh), hfh, &hread_wrapper, ofh);              int ret = process_frame(byte, &turing, htell(hfh), hfh, &hread_wrapper, ofh, &fwrite_wrapper);
252              if (ret == 1)              if (ret == 1)
253              {              {
254                  marker = 0xFFFFFFFF;                  marker = 0xFFFFFFFF;

Legend:
Removed from v.65  
changed lines
  Added in v.66

cvs@jdrake.com
ViewVC Help
Powered by ViewVC 1.1.13