- 30 Oct, 2015 1 commit
-
-
Martin Storsjö authored
Some systems may be lacking getservbyport; the previous ifdef wasn't quite enough since it still assumed that struct servent was defined, as pointed out by Clément Gregoire. Simply remove the possibility to return non-numeric services in getnameinfo; no caller of getnameinfo within libavformat currently try to use getnameinfo for retrieving the port number without NI_NUMERICSERV, and falling back on getservbyport may be non-threadsafe. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 22 Dec, 2014 1 commit
-
-
Michael Niedermayer authored
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
- 19 Sep, 2014 1 commit
-
-
Daniel Bomar authored
As suggested, this just adds _DEFAULT_SOURCE while preserving _SVID_SOURCE for whatever old systems still need it. Signed-off-by: Daniel Bomar <dbdaniel42@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
- 02 Nov, 2013 1 commit
-
-
Diego Biurrun authored
-
- 08 Aug, 2013 1 commit
-
-
Martin Storsjö authored
When libavformat was changed to use the new avpriv_open function in 51eb213d, 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>
-
- 27 Mar, 2013 3 commits
-
-
Hendrik Leppkes authored
Signed-off-by: Martin Storsjö <martin@martin.st>
-
Reimar Döffinger authored
- Make MultiByteToWideChar fail when it encounters invalid encoding. Without this, invalid characters might just be skipped - When MultiByteToWideChar fails, assume the file name is in CP_ACP and open it via normal open function, even when the file will be written - When malloc fails return error instead of crashing Signed-off-by: Martin Storsjö <martin@martin.st>
-
Reimar Döffinger authored
In order to match Linux behaviour better our Windows-specific open() replacement should disable Windows default file locking. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 16 Mar, 2013 1 commit
-
-
Reimar Döffinger authored
- Make MultiByteToWideChar fail when it encounters invalid encoding. Without this, invalid characters might just be skipped - When MultiByteToWideChar fails, assume the file name is in CP_ACP and open it via normal open function, even when the file will be written - When malloc fails return error instead of crashing Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
-
- 12 Mar, 2013 1 commit
-
-
Hendrik Leppkes authored
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
- 23 Oct, 2012 1 commit
-
-
Mans Rullgard authored
The absence of this function will only give a less informative string back from our fallback implementation of getnameinfo(). Signed-off-by: Mans Rullgard <mans@mansr.com>
-
- 17 Jul, 2012 1 commit
-
-
Diego Biurrun authored
-
- 15 Jul, 2012 2 commits
-
-
Martin Storsjö authored
Even if linking directly to getaddrinfo, use our version of gai_strerror instead of the system's version. Microsoft explicitly documents that their version of gai_strerror is thread-unsafe. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This is useful if a proper getaddrinfo is loaded dynamically on windows, while using the fallback implementation of gai_strerror. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 30 Jun, 2012 3 commits
-
-
Martin Storsjö authored
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>
-
Martin Storsjö authored
The fds are unsigned integers in the windows definition of struct sockfds. Due to this, the comparison if (fds[i].fd > n) was always false. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Ronald S. Bultje authored
io.h is required for open and _wopen, and fcntl.h is required for the O_CREAT flag. On mingw, fcntl.h is included by os_support.h (and the mingw fcntl.h includes io.h), but include it explicitly here since this implementation requires it. Also move the #undef open up. open must not be defined to ff_win32_open while including the headers that declare the open function. On mingw, this happened in os_support.h before open was redirected. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 26 Jun, 2012 1 commit
-
-
Ronald S. Bultje authored
Apparently this include is needed on some systems for building the poll fallback (for the timeval struct for select?), but it isn't available on all systems. Thus only include it if it exists. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 20 Jun, 2012 1 commit
-
-
Mans Rullgard authored
These files do not use anything provided by unistd.h. Signed-off-by: Mans Rullgard <mans@mansr.com>
-
- 19 Jun, 2012 1 commit
-
-
Martin Storsjö authored
This avoids warnings. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 18 Feb, 2012 1 commit
-
-
Reimar Döffinger authored
In order to match Linux behaviour better our Windows-specific open() replacement should disable Windows default file locking. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
-
- 06 Nov, 2011 1 commit
-
-
Martin Storsjö authored
Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 02 Nov, 2011 1 commit
-
-
Diego Biurrun authored
-
- 12 May, 2011 1 commit
-
-
Diego Biurrun authored
Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems since it causes certain system functions to be hidden on some (BSD) systems. The solution is to only add the flag on systems that really require it, i.e. glibc-based ones. This change makes BSD systems compile out-of-the-box without the need for adding specific flags manually. It also allows dropping a number of flags set manually on a file-per-file basis, but were only present to work around breakage introduced by the presence of _POSIX_C_SOURCE. Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems. We use XSI extensions in several places already, so it is preferable to define it globally instead of littering source files with individual #defines only needed for glibc.
-
- 23 Apr, 2011 1 commit
-
-
Kirill Gavrilov authored
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>
-
- 19 Mar, 2011 1 commit
-
-
Mans Rullgard authored
Signed-off-by: Mans Rullgard <mans@mansr.com>
-
- 16 Feb, 2011 1 commit
-
-
Max Shakhmetov authored
Our poll implementation does not iterate over the pollfd array properly while setting the revents. Signed-off-by: Luca Barbato <lu_zero@gentoo.org> (cherry picked from commit 9ac2085d)
-
- 15 Feb, 2011 1 commit
-
-
Max Shakhmetov authored
Our poll implementation does not iterate over the pollfd array properly while setting the revents. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-
- 30 Jan, 2011 2 commits
-
-
Mans Rullgard authored
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 a8475bbd. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 362d8f7d)
-
Luca Barbato authored
Select has limitations on the fd values it could accept and silently breaks when it is reached. (cherry picked from commit a8475bbd)
-
- 28 Jan, 2011 2 commits
-
-
Mans Rullgard authored
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 a8475bbd. Signed-off-by: Mans Rullgard <mans@mansr.com>
-
Luca Barbato authored
Select has limitations on the fd values it could accept and silently breaks when it is reached.
-
- 06 Jul, 2010 1 commit
-
-
Måns Rullgård authored
Originally committed as revision 24072 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
- 08 Mar, 2010 1 commit
-
-
Måns Rullgård authored
This deprecated function is only used by ffserver, yet does not have a prototype visible there. In the long term, ffserver should be made IPv6-aware. In the meantime, this change removes cruft from lavf and fixes some warnings in ffserver. Originally committed as revision 22329 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
- 07 Mar, 2010 2 commits
-
-
David Conrad authored
Originally committed as revision 22285 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
David Conrad authored
Originally committed as revision 22284 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
- 28 Feb, 2010 1 commit
-
-
Reimar Döffinger authored
value to NULL on errors. Originally committed as revision 22122 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
- 08 Feb, 2010 1 commit
-
-
Ronald S. Bultje authored
by KO Myung-Hun <komh challion net>. Originally committed as revision 21692 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
- 25 Jan, 2010 1 commit
-
-
Martin Storsjö authored
Patch by Martin Storsjö <martin at martin dot st>. Originally committed as revision 21443 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
- 11 Jan, 2010 1 commit
-
-
Martin Storsjö authored
<$firstname()$firstname,st>. Originally committed as revision 21150 to svn://svn.ffmpeg.org/ffmpeg/trunk
-