OSDN Git Service

file: Move win32 utf8->wchar open wrapper to libavutil
authorMartin Storsjö <martin@martin.st>
Thu, 8 Aug 2013 08:29:57 +0000 (11:29 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 8 Aug 2013 13:41:33 +0000 (16:41 +0300)
commitdfc6b5c81491abf7effb97b23af17ccf7adcd132
tree59c15f6c909f3421e55859ed2c06ec4fe0238fcc
parent45e10e5c8d3df09c80a4d80483bff2712367f3fa
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>
libavformat/os_support.c
libavformat/os_support.h
libavutil/file.c