[MPlayer-cvslog] r29062 - trunk/loader/win32.c

compn subversion at mplayerhq.hu
Thu Mar 26 00:59:48 CET 2009


Author: compn
Date: Thu Mar 26 00:59:48 2009
New Revision: 29062

Log:
enable vp6 codec to read/write .fpf (passlogfile)
fixes 2pass vp6 encoding on linux

Modified:
   trunk/loader/win32.c

Modified: trunk/loader/win32.c
==============================================================================
--- trunk/loader/win32.c	Thu Mar 26 00:32:27 2009	(r29061)
+++ trunk/loader/win32.c	Thu Mar 26 00:59:48 2009	(r29062)
@@ -63,6 +63,8 @@ for DLL to know too much about its envir
 #include <sys/types.h>
 #include <dirent.h>
 #include <sys/time.h>
+#include <sys/stat.h>
+#include <sys/timeb.h>
 #ifdef	HAVE_KSTAT
 #include <kstat.h>
 #endif
@@ -3519,7 +3521,7 @@ static HANDLE WINAPI expCreateFileA(LPCS
 	free(tmp);
 	return result;
     }
-    if (strstr(cs1, "vp3"))
+    if (strstr(cs1, "vp3") || strstr(cs1, ".fpf"))
     {
 	int r;
 	int flg = 0;
@@ -3537,10 +3539,10 @@ static HANDLE WINAPI expCreateFileA(LPCS
 	    flg |= O_RDONLY;
 	else if (GENERIC_WRITE & i1)
 	{
-	    flg |= O_WRONLY;
+	    flg |= O_WRONLY | O_CREAT;
 	    printf("Warning: openning filename %s  %d (flags; 0x%x) for write\n", tmp, r, flg);
 	}
-	r=open(tmp, flg);
+	r=open(tmp, flg, S_IRWXU);
 	free(tmp);
 	return r;
     }


More information about the MPlayer-cvslog mailing list