Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
lavf/os_support.h: Fix for unicode filenames on windows.
Fixes #819 #5256 #5281 Signed-off-by: Matt Oliver <protogonoi@gmail.com>
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37787f2There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit is causing a failure to cross compile for x86 Windows in Ubuntu14.04:
In file included from ./libavformat/internal.h:28:0, from libavdevice/decklink_enc.cpp:29: ./libavformat/os_support.h: In function 'int win32_stat(const char*, _stati64*)': ./libavformat/os_support.h:196:32: error: cannot convert '_stati64*' to '_stat64*' for argument '2' to 'int _wstat64(const wchar_t*, _stat64*)' ret = wfunc(filename_w, par); \ ^ ./libavformat/os_support.h:206:1: note: in expansion of macro 'DEF_FS_FUNCTION2' DEF_FS_FUNCTION2(stat, _wstat64, _stat64, struct stat*) ^ ./libavformat/os_support.h:202:36: error: cannot convert '_stati64*' to '_stat64*' for argument '2' to 'int _stat64(const char*, _stat64*)' return afunc(filename_utf8, par);