diff options
author | Kirill Gavrilov <gavr.mail@gmail.com> | 2011-04-20 14:36:44 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-04-24 00:05:38 +0300 |
commit | b1ac139d89b9fc55b70ad3411af2f75fe8b17805 (patch) | |
tree | 28ae1bc6fca572e2bb811962f3d381c2fb7af935 /libavformat/os_support.h | |
parent | 9261e6cf3fe579fa02a96761c8e81a77bb3d8b2e (diff) | |
download | ffmpeg-b1ac139d89b9fc55b70ad3411af2f75fe8b17805.tar.gz |
Handle unicode file names on windows
All file names should be in UTF-8 within libavformat.
This is handled by mapping the open() function to an internal one
in os_support.h for windows.
fopen() could be overridden in the same way, but if that would be
used from ffmpeg.c, it would add a dependency on an ff prefixed
internal lavf function.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/os_support.h')
-rw-r--r-- | libavformat/os_support.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h index dc01e6413c..521e9978a2 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -45,6 +45,11 @@ static inline int is_dos_path(const char *path) return 0; } +#if defined(_WIN32) && !defined(__MINGW32CE__) +int ff_win32_open(const char *filename, int oflag, int pmode); +#define open ff_win32_open +#endif + #if CONFIG_NETWORK #if !HAVE_SOCKLEN_T typedef int socklen_t; |