diff options
author | Matt Oliver <protogonoi@gmail.com> | 2016-06-06 17:04:39 +1000 |
---|---|---|
committer | Matt Oliver <protogonoi@gmail.com> | 2016-06-13 13:47:32 +1000 |
commit | 37787f261639c53998487400e874741c17e85fc6 (patch) | |
tree | 6be7c8bf0bf36e8e192220794c0e665576e1815a /libavformat/file.c | |
parent | be37a669714094b9321f9f6f2947a296fe020483 (diff) | |
download | ffmpeg-37787f261639c53998487400e874741c17e85fc6.tar.gz |
lavf/os_support.h: Fix for unicode filenames on windows.
Fixes #819 #5256 #5281
Signed-off-by: Matt Oliver <protogonoi@gmail.com>
Diffstat (limited to 'libavformat/file.c')
-rw-r--r-- | libavformat/file.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/file.c b/libavformat/file.c index 5765ce7e48..264542a36a 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -148,7 +148,11 @@ static int file_check(URLContext *h, int mask) ret |= AVIO_FLAG_WRITE; #else struct stat st; +# ifndef _WIN32 ret = stat(filename, &st); +# else + ret = win32_stat(filename, &st); +# endif if (ret < 0) return AVERROR(errno); |