Age | Commit message (Collapse) | Author |
|
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>
|
|
|
|
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>
|
|
error codes
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
These files do not use anything provided by unistd.h.
Signed-off-by: Mans Rullgard <mans@mansr.com>
|
|
windows
This avoids warnings.
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
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.
|
|
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>
|
|
Signed-off-by: Mans Rullgard <mans@mansr.com>
|
|
Our poll implementation does not iterate over the pollfd array properly
while setting the revents.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
|
|
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>
|
|
Select has limitations on the fd values it could accept and silently
breaks when it is reached.
|
|
Originally committed as revision 24072 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
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
|
|
Originally committed as revision 22285 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 22284 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
value to NULL on errors.
Originally committed as revision 22122 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
by KO Myung-Hun <komh challion net>.
Originally committed as revision 21692 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Patch by Martin Storsjö <martin at martin dot st>.
Originally committed as revision 21443 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
<$firstname()$firstname,st>.
Originally committed as revision 21150 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Patch by Martin Storsjö <$firstname()$firstname,st>.
Originally committed as revision 21145 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Storsjö <$firstname()$firstname,st>.
Originally committed as revision 21143 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
only works correctly on little-endian. The attached patch makes it endian
independent.
Patch by Martin Storsjö <$firstname()$firstname,st>.
Originally committed as revision 21080 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
patch by Dave Yeo daveryeo _at_ telus _dot_ net
Originally committed as revision 14793 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 14768 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 14766 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 11924 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
patch by Michael Kostylev, mik niipt ru
Originally committed as revision 11324 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Patch by Tom Harper <d.thomas.harper <at> gmail.com>
Originally committed as revision 11200 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 11073 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 9988 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 9756 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 9733 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
patch by elupus: \elupus ecce se/
original thread:
[FFmpeg-devel] [PATCH] emulated inet_aton doesn't fail for invalidaddresses
date: 07/15/2007 12:40 AM
Originally committed as revision 9731 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 9707 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 9706 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 9705 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 9586 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
It is no longer used.
Originally committed as revision 9425 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 9096 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 9095 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 9029 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 8846 to svn://svn.ffmpeg.org/ffmpeg/trunk
|