Skip to content

Commit

Permalink
os_compat: fix compilation with FFmpeg 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanreg committed Feb 10, 2023
1 parent a3fcb32 commit 5082892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static inline int utf8towchar(const char *filename_utf8, wchar_t **filename_w)
int num_chars = MultiByteToWideChar(CP_UTF8, 0, filename_utf8, -1, NULL, 0);
if (num_chars <= 0)
abort();
*filename_w = (wchar_t *)av_mallocz_array(num_chars, sizeof(wchar_t));
*filename_w = (wchar_t *)av_calloc(num_chars, sizeof(wchar_t));
MultiByteToWideChar(CP_UTF8, 0, filename_utf8, -1, *filename_w, num_chars);
return 0;
}
Expand Down

0 comments on commit 5082892

Please sign in to comment.