diff options
author | compn <compn@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-25 23:59:48 +0000 |
---|---|---|
committer | compn <compn@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-25 23:59:48 +0000 |
commit | 2a1c8c471e7b32ba75131e246559fff416c55622 (patch) | |
tree | 9b698445f6426b86c851e4d7d14acbd792f93148 /loader | |
parent | 38116c1f73ab634dd8df34a735198cfd32918385 (diff) | |
download | mpv-2a1c8c471e7b32ba75131e246559fff416c55622.tar.bz2 mpv-2a1c8c471e7b32ba75131e246559fff416c55622.tar.xz |
enable vp6 codec to read/write .fpf (passlogfile)
fixes 2pass vp6 encoding on linux
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29062 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader')
-rw-r--r-- | loader/win32.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/loader/win32.c b/loader/win32.c index 2ee9f1ea7e..3aded84674 100644 --- a/loader/win32.c +++ b/loader/win32.c @@ -63,6 +63,8 @@ for DLL to know too much about its environment. #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(LPCSTR cs1,DWORD i1,DWORD i2, 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(LPCSTR cs1,DWORD i1,DWORD i2, 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; } |