[FFmpeg-cvslog] os_support: use the appropriate stat functions matching the stat type

Hendrik Leppkes git at videolan.org
Tue Jun 14 23:50:32 CEST 2016


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Tue Jun 14 17:02:40 2016 +0200| [cb46b78b2ec0179666012e2d85014236c2f5385b] | committer: Hendrik Leppkes

os_support: use the appropriate stat functions matching the stat type

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.

Fixes trac #5640

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb46b78b2ec0179666012e2d85014236c2f5385b
---

 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)
 {



More information about the ffmpeg-cvslog mailing list