19 #ifndef AVUTIL_WCHAR_FILENAME_H
20 #define AVUTIL_WCHAR_FILENAME_H
22 #if defined(_WIN32) && !defined(__MINGW32CE__)
26 static inline int utf8towchar(
const char *filename_utf8,
wchar_t **filename_w)
29 num_chars = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, filename_utf8, -1,
NULL, 0);
39 MultiByteToWideChar(CP_UTF8, 0, filename_utf8, -1, *filename_w, num_chars);
memory handling functions
static void * av_mallocz_array(size_t nmemb, size_t size)