git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avformat/os_support: try to fix build when included from a c++ file like libavdevice...
[ffmpeg.git]
/
libavformat
/
os_support.h
diff --git
a/libavformat/os_support.h
b/libavformat/os_support.h
index
256890b
..
17e362b
100644
(file)
--- a/
libavformat/os_support.h
+++ b/
libavformat/os_support.h
@@
-154,7
+154,7
@@
static inline int utf8towchar(const char *filename_utf8, wchar_t **filename_w)
*filename_w = NULL;
return 0;
}
*filename_w = NULL;
return 0;
}
- *filename_w = av_mallocz(sizeof(wchar_t) * num_chars);
+ *filename_w =
(wchar_t *)
av_mallocz(sizeof(wchar_t) * num_chars);
if (!*filename_w) {
errno = ENOMEM;
return -1;
if (!*filename_w) {
errno = ENOMEM;
return -1;