[svn] / trunk / xvidextra / src / apps / miniconvert / cfourcc.cpp Repository:
ViewVC logotype

Diff of /trunk/xvidextra/src/apps/miniconvert/cfourcc.cpp

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

revision 2018, Wed Jun 15 19:09:17 2011 UTC revision 2019, Mon Jun 20 18:10:44 2011 UTC
# Line 54  Line 54 
54    
55    memset (&avihdr, 0, AVILEN);  /* init avihdr just in case! */    memset (&avihdr, 0, AVILEN);  /* init avihdr just in case! */
56    
57    fin = _wfopen (filename, L"rb");    fin = _tfopen (filename, TEXT("rb"));
58    if (fin == NULL) {    if (fin == NULL) {
59          OutputDebugString(L"Error: Cannot open avi file!");          OutputDebugString(TEXT("Error: Cannot open avi file!"));
60          return -1;          return -1;
61    }    }
62    
63    if (fread (avihdr, sizeof (char), AVILEN, fin) < AVILEN) {    if (fread (avihdr, sizeof (char), AVILEN, fin) < AVILEN) {
64          OutputDebugString(L"Error: Read end unexpectedly, incomplete file?");          OutputDebugString(TEXT("Error: Read end unexpectedly, incomplete file?"));
65          return -1;          return -1;
66    }    }
67    fclose (fin);    fclose (fin);
# Line 69  Line 69 
69    if (check_only) {    if (check_only) {
70      /*lazy verifier! */      /*lazy verifier! */
71      if (memcmp (avihdr, MAGIC, 4)) {      if (memcmp (avihdr, MAGIC, 4)) {
72            OutputDebugString(L"Error: Probably not a supported avi file");            OutputDebugString(TEXT("Error: Probably not a supported avi file"));
73            return -1;            return -1;
74      }      }
75    }    }
76    else {    else {
77      fin = _wfopen (filename, L"r+b");      fin = _tfopen (filename, TEXT("r+b"));
78      if (fin == NULL) {      if (fin == NULL) {
79        OutputDebugString(L"Error: Cannot open avi file for writing\n");        OutputDebugString(TEXT("Error: Cannot open avi file for writing\n"));
80            return -1;            return -1;
81      }      }
82    

Legend:
Removed from v.2018  
changed lines
  Added in v.2019

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4