From 37787f261639c53998487400e874741c17e85fc6 Mon Sep 17 00:00:00 2001 From: Matt Oliver Date: Mon, 6 Jun 2016 17:04:39 +1000 Subject: lavf/os_support.h: Fix for unicode filenames on windows. Fixes #819 #5256 #5281 Signed-off-by: Matt Oliver --- libavformat/file.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavformat/file.c') 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); -- cgit v1.2.3