summaryrefslogtreecommitdiff
path: root/libavformat/os_support.h
Commit message (Collapse)AuthorAge
* libavformat: Only use MoveFileExA when targeting the desktop API subsetMartin Storsjö2014-12-19
| | | | | | | | | | | | | | | | The MoveFileExA is available in the headers regardless which API subset is targeted, but it is missing in the Windows Phone link libraries. When targeting Windows Store apps, the function is available both in the headers and in the link libraries, and thus there is no indication for the build system that this function should be avoided - such an indication is only given by the Windows App Certification Kit, which forbids using the MoveFileExA function. Therefore check the WINAPI_FAMILY defines instead, to figure out which API subset is targeted. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Use MoveFileEx instead of rename/_wrename on windowsMartin Storsjö2014-11-27
| | | | | | | | | This allows getting the normal unix semantics, where a rename allows replacing an existing file. Based on a suggestion by Reimar Döffinger. Signed-off-by: Martin Storsjö <martin@martin.st>
* Share the utf8 to wchar conversion routine between lavf and lavuMartin Storsjö2014-11-27
| | | | | | | | This doesn't add any dependency on library internals, since this only is a static inline function that gets built into each of the calling functions - this is only to reduce the code duplication. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Use wchar functions for filenames on windows for mkdir/rmdir/rename/unlinkMartin Storsjö2014-11-24
| | | | | | | | | | | | | | | | | | This makes sure that the internal utf8 path names are handled properly - the normal file handling functions assume path names are in the native codepage, which isn't utf8. This assumes that the tools outside of lavf don't use the mkdir definition. (The tools don't do the same reading of command line parameters as wchar either - they probably won't handle all possible unicode file parameters properly, but at least work more predictably if no utf8/wchar conversion is involved.) This is moved further down in os_support.h, since windows.h shouldn't be included before winsock2.h, while io.h needs to be included before the manual defines for lseek functions. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Remove a redundant include of sys/stat.hMartin Storsjö2014-11-22
| | | | | | | The same file already includes this header a few lines further above. Signed-off-by: Martin Storsjö <martin@martin.st>
* os_support: Adjust an outdated #endif commentDiego Biurrun2014-08-26
|
* os_support: Undefine lseek/stat/fstat before defining themDiego Biurrun2014-08-22
| | | | This avoids a number of redefinition warnings on MinGW64.
* file: Move win32 utf8->wchar open wrapper to libavutilMartin Storsjö2013-08-08
| | | | | | | | | | | | | When libavformat was changed to use the new avpriv_open function in 51eb213d001, this silently bypassed the existing wrapper for win32. Move the win32 wrapper into libavutil/file.c to make sure it gets called everywhere (not just in the libavformat case). This makes sure that non-ascii file names gets opened properly (where file names internally are stored as utf8, but they get converted to wchar_t and opened with _wsopen). Signed-off-by: Martin Storsjö <martin@martin.st>
* win32: Use 64-bit fstat/lseek variants for MSVC as wellHendrik Leppkes2013-03-27
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* build: Plan 9 supportMans Rullgard2012-10-23
| | | | | | | | | | | | | This adds support for building on Plan 9 x86-32. The compat/plan9 directory contains these items: - replacements for the 'head' and 'printf' shell commands - wrapper for main() to disable FPU exceptions Larger required changes to the system are described in the documentation. Signed-off-by: Mans Rullgard <mans@mansr.com>
* os_support: Choose between direct.h and io.h using a configure checkMartin Storsjö2012-09-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* os_support: Include io.h instead of direct.h on mingw32ceMartin Storsjö2012-09-13
| | | | | | | | Windows CE doesn't have neither mkdir nor _mkdir officially (only CreateDirectoryW), but mingw32ce has compat wrappers with these names (declared in io.h since direct.h is unavailable). Signed-off-by: Martin Storsjö <martin@martin.st>
* Add a smooth streaming segmenter muxerMartin Storsjö2012-09-12
| | | | | | | | | | | | | | | | | This muxer splits the output from the ismv muxer into individual files, in realtime. The same can also be done by the standalone tool ismindex, but this muxer is needed for doing it in realtime (especially for live streams that need extra handling for updating the lookahead fields in the fragment headers). Using this muxer, one can deliver live smooth streaming from a normal static file web server. (Using ismindex, one can deliver premade smooth streaming files from a static file web server, or prepare files for serving with IIS.) Signed-off-by: Martin Storsjö <martin@martin.st>
* os_support: Add fallback definitions for stat flagsRonald S. Bultje2012-06-30
| | | | | | | | Mingw headers provide similar defines already (unconditional #defines, without any #undef or #ifdef around it), while MSVC doesn't have them. Signed-off-by: Martin Storsjö <martin@martin.st>
* os_support: Rename the poll fallback function to ff_pollMartin Storsjö2012-06-30
| | | | | | | | | | | | The fallback function is a non-static function, we shouldn't be defining non-static functions outside of the proper ff/av prefix namespaces. This is especially important for a function like poll, which other parties (other libraries, or executables linking these libraries) also might provide similar but incompatible fallbacks for. Signed-off-by: Martin Storsjö <martin@martin.st>
* network: Check for struct pollfdMartin Storsjö2012-06-30
| | | | | | | | We need to include winsock2.h here, to make sure we have the real pollfd struct definition, if one exists, before defining the fallback poll function. Signed-off-by: Martin Storsjö <martin@martin.st>
* os_support: Define SHUT_RD, SHUT_WR and SHUT_RDWR on OS/2Dave Yeo2012-05-23
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* tcp: Allow signalling end of reading/writingSamuel Pitoiset2012-05-22
| | | | | | | tcp_shutdown() isn't needed at the moment, but is added for consistency to explain how the function is supposed to be used. Signed-off-by: Martin Storsjö <martin@martin.st>
* Remove some stray unnecessary ffmpeg references.Diego Biurrun2011-11-02
|
* Handle unicode file names on windowsKirill Gavrilov2011-04-24
| | | | | | | | | | | | | All file names should be in UTF-8 within libavformat. This is handled by mapping the open() function to an internal one in os_support.h for windows. fopen() could be overridden in the same way, but if that would be used from ffmpeg.c, it would add a dependency on an ff prefixed internal lavf function. Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* os_support: make poll() fallbacks conditional on CONFIG_NETWORKMans Rullgard2011-01-28
| | | | | | | | | | | poll() is only used by networking code, so the fallback should only be built if networking is enabled. Also remove CONFIG_FFSERVER condition from the declarations. This should fix building on systems without poll(), broken by a8475bbdb64e638bd8161df9647876fd23f8a29a. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move INET6_ADDRSTRLEN to network.h, similar to other network-related fixupsRonald S. Bultje2010-09-03
| | | | | | | for broken OSes. This is included in rtsp.h, as opposed to os_support.h. Should fix OS/2 broken build on fate. Originally committed as revision 25035 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Send NAT punching messages to the address specified in the Transport:John Wimer2010-09-03
| | | | | | | | message, if available (RFC 2326, section 12.39), fixes issue 2212. Patch by John Wimer <john at god vtic net>. Originally committed as revision 25032 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove support for pre-Haiku, non-POSIX, non-C99 BeOS variants.Diego Biurrun2010-06-10
| | | | | | | | BeOS support has been broken for many years and the "maintainer" of the port has not reacted to countless requests to get the port fixed. approved by Mans Originally committed as revision 23562 to svn://svn.ffmpeg.org/ffmpeg/trunk
* win32: Use _fstati64() instead of plain old fstat() on Windows to support filekemuri2010-06-03
| | | | | | | | sizes greater than 4gb. Patch by kemuri <kemuri9 at gmail dot com> Originally committed as revision 23448 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add comment on #endif about condition that triggers it.Ramiro Polla2009-10-21
| | | | Originally committed as revision 20337 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only #define lseek to _lseeki64 on MinGW, not MinGW CE.İsmail Dönmez2009-07-13
| | | | | | | This fixes compilation on WinCE, which does not support _lseeki64. patch by Ismail Dönmez, ismail namtrac org Originally committed as revision 19425 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-01
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix undefined preprocessor directives warnings during 'make checkheaders'.Diego Biurrun2009-01-24
| | | | Originally committed as revision 16747 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-13
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Delete unnecessary 'extern' keywords.Diego Biurrun2008-12-03
| | | | Originally committed as revision 15990 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only special-case absolute DOS paths on systems that support them.Ramiro Polla2008-10-10
| | | | Originally committed as revision 15594 to svn://svn.ffmpeg.org/ffmpeg/trunk
* MinGW runtime 3.15 has a wrapper for usleep().Ramiro Polla2008-10-02
| | | | Originally committed as revision 15522 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Globally rename the header inclusion guard names.Stefano Sabatini2008-08-31
| | | | | | | | | Consistently apply this rule: the guard name is obtained from the filename by stripping the leading "lib", converting '/' and '.' to '_' and uppercasing the resulting name. Guard names in the root directory have to be prefixed by "FFMPEG_". Originally committed as revision 15120 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert r14497Michael Niedermayer2008-08-01
| | | | | | | | | Log: Add missing header #includes. Policy violation (change not approved by maintainer) and while discussions where ongoing and no consensus has been reached. Originally committed as revision 14500 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing header #includes.Diego Biurrun2008-08-01
| | | | Originally committed as revision 14497 to svn://svn.ffmpeg.org/ffmpeg/trunk
* typo: occured --> occurredDiego Biurrun2008-03-22
| | | | Originally committed as revision 12549 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define WIN32_LEAN_AND_MEAN before including windows.h to excludeRamiro Polla2008-03-08
| | | | | | rarely-used header files. Originally committed as revision 12378 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Include windows.h instead of trying to redeclare SleepRamiro Polla2008-03-08
| | | | | | | os_support.h used to be included in all lavf files, and including windows.h here caused a significant slowdown. Originally committed as revision 12377 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Put network-related code under #ifdefRamiro Polla2008-03-08
| | | | Originally committed as revision 12372 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Group network-related code togetherRamiro Polla2008-03-08
| | | | Originally committed as revision 12371 to svn://svn.ffmpeg.org/ffmpeg/trunk
* __stdcall -> WINAPIRamiro Polla2008-03-07
| | | | | | | Windows x64 has no __stdcall. It is not yet supported, but someday it might... Originally committed as revision 12363 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Include poll.h instead of sys/poll.hLuca Abeni2008-02-13
| | | | Originally committed as revision 11924 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add portable way to check for the existence of definitions andDave Yeo2008-01-01
| | | | | | | apply it to socklen_t. patch by Dave Yeo, daveryeo telus net Originally committed as revision 11366 to svn://svn.ffmpeg.org/ffmpeg/trunk
* djgpp port, first partMichael Kostylev2007-12-24
| | | | | | patch by Michael Kostylev, mik niipt ru Originally committed as revision 11313 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove possibly misleading comments.Diego Biurrun2007-11-27
| | | | Originally committed as revision 11095 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add FFMPEG_ prefix to all multiple inclusion guards.Diego Biurrun2007-10-17
| | | | Originally committed as revision 10765 to svn://svn.ffmpeg.org/ffmpeg/trunk
* use proper closesocket definesAlex Beregszaszi2007-08-08
| | | | Originally committed as revision 9992 to svn://svn.ffmpeg.org/ffmpeg/trunk