Skip to content

Commit 5082892

Browse files
committed
os_compat: fix compilation with FFmpeg 6.0
1 parent a3fcb32 commit 5082892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os_compat.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static inline int utf8towchar(const char *filename_utf8, wchar_t **filename_w)
3232
int num_chars = MultiByteToWideChar(CP_UTF8, 0, filename_utf8, -1, NULL, 0);
3333
if (num_chars <= 0)
3434
abort();
35-
*filename_w = (wchar_t *)av_mallocz_array(num_chars, sizeof(wchar_t));
35+
*filename_w = (wchar_t *)av_calloc(num_chars, sizeof(wchar_t));
3636
MultiByteToWideChar(CP_UTF8, 0, filename_utf8, -1, *filename_w, num_chars);
3737
return 0;
3838
}

0 commit comments

Comments
 (0)