19 #ifndef AVUTIL_WCHAR_FILENAME_H 20 #define AVUTIL_WCHAR_FILENAME_H 27 static inline int utf8towchar(
const char *filename_utf8,
wchar_t **filename_w)
30 num_chars = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, filename_utf8, -1,
NULL, 0);
40 MultiByteToWideChar(CP_UTF8, 0, filename_utf8, -1, *filename_w, num_chars);
Memory handling functions.
#define av_warn_unused_result
void * av_mallocz_array(size_t nmemb, size_t size)
Allocate a memory block for an array with av_mallocz().