[FFmpeg-devel] [PATCH] os_support: use the appropriate stat functions matching the stat type
Hendrik Leppkes
h.leppkes at gmail.com
Tue Jun 14 17:09:01 CEST 2016
The stat struct is defined to stati64, which requires using the appropriate wstati/stati functions as well.
Fixes a whole bunch of compiler warnings as well as build breakage with the decklink avdevice.
---
libavformat/os_support.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 9e312a5..caf1a2f 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -203,7 +203,7 @@ fallback: \
}
DEF_FS_FUNCTION2(access, _waccess, _access, int)
-DEF_FS_FUNCTION2(stat, _wstat64, _stat64, struct stat*)
+DEF_FS_FUNCTION2(stat, _wstati64, _stati64, struct stat*)
static inline int win32_rename(const char *src_utf8, const char *dest_utf8)
{
--
2.7.2.windows.1
More information about the ffmpeg-devel
mailing list