diff options
author | Martin Storsjö <martin@martin.st> | 2013-08-08 11:29:57 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-08-08 16:41:33 +0300 |
commit | dfc6b5c81491abf7effb97b23af17ccf7adcd132 (patch) | |
tree | 59c15f6c909f3421e55859ed2c06ec4fe0238fcc /libavformat/os_support.h | |
parent | 45e10e5c8d3df09c80a4d80483bff2712367f3fa (diff) | |
download | ffmpeg-dfc6b5c81491abf7effb97b23af17ccf7adcd132.tar.gz |
file: Move win32 utf8->wchar open wrapper to libavutil
When libavformat was changed to use the new avpriv_open function
in 51eb213d001, this silently bypassed the existing wrapper for
win32. Move the win32 wrapper into libavutil/file.c to make sure
it gets called everywhere (not just in the libavformat case).
This makes sure that non-ascii file names gets opened properly
(where file names internally are stored as utf8, but they get
converted to wchar_t and opened with _wsopen).
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, 0 insertions, 5 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 39d4cb6519..ae8cef7efa 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -77,11 +77,6 @@ static inline int is_dos_path(const char *path) #endif #endif -#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; |