[FFmpeg-devel] [PATCH] avutil/internal: Document ugly looking windows specific file related function renaming
Michael Niedermayer
michael at niedermayer.cc
Wed Feb 1 15:35:50 EET 2017
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavutil/internal.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavutil/internal.h b/libavutil/internal.h
index a19975d474..e97034887b 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -243,8 +243,12 @@ void avpriv_request_sample(void *avc,
#pragma comment(linker, "/include:" EXTERN_PREFIX "avpriv_snprintf")
#endif
+// Rename shared function (both use and implementation of them) so they are not shared
+// and each library carries its own copy of a implementation, this is needed as
+// the fd numbers are not transportable between libs on windows
#define avpriv_open ff_open
#define avpriv_tempfile ff_tempfile
+
#define PTRDIFF_SPECIFIER "Id"
#define SIZE_SPECIFIER "Iu"
#else
--
2.11.0
More information about the ffmpeg-devel
mailing list