summaryrefslogtreecommitdiff
path: root/libavformat/os_support.c
Commit message (Collapse)AuthorAge
* Allow other programs to open the same files on Windows.Reimar Döffinger2012-02-18
| | | | | | | | 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>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-11-07
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (23 commits) x86inc: use sse versions of common macros instead of sse2 when applicable doc/APIchanges: add missing dates and hashes lavf: don't return from void av_update_cur_dts() Changelog: add more entries. Changelog: update ffmpeg/avconv incompatibility list. avconv: remove some redundant temporary variables. avconv: fix broken indentation avconv: move copy_initial_nonkeyframes to the options context. avconv: use file:stream instead of file.stream in log messages. doc/avconv: elaborate on basic functionality. doc/avconv: -sample_fmts, not -help sample_fmts prints the sample formats openssl: Only use CRYPTO_set_id_callback on OpenSSL < 1.0.0 Call avformat_network_init/deinit in the programs Remove leftover includes of strings.h avutil: Don't allow using strcasecmp/strncasecmp Replace all usage of strcasecmp/strncasecmp avstring: Add locale independent implementations of strcasecmp/strncasecmp avstring: Add locale independent implementations of toupper/tolower cosmetics: insert some spaces in explicit enum value assignments move 8SVX audio codecs to the audio codec list part on the next bump ... Conflicts: avprobe.c doc/APIchanges ffplay.c ffserver.c libavcodec/avcodec.h libavdevice/bktr.c libavdevice/v4l.c libavdevice/v4l2.c libavformat/matroskaenc.c libavformat/wtv.c libavutil/avstring.c libavutil/avstring.h libavutil/avutil.h libswscale/x86/swscale_template.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove leftover includes of strings.hMartin Storsjö2011-11-06
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-11-03
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (44 commits) replacement Indeo 3 decoder gsm demuxer: do not allocate packet twice. flvenc: use first packet delay as global delay. ac3enc: doxygen update. imc: return error codes instead of 0 for error conditions. imc: return meaningful error codes instead of -1 imc: do not set channel layout for stereo imc: validate channel count imc: check for ff_fft_init() failure imc: check output buffer size before decoding imc: use DSPContext.bswap16_buf() to byte-swap packet data rtsp: add allowed_media_types option libgsm: add flush function to reset the decoder state when seeking libgsm: simplify decoding by using a loop gsm: log error message when packet is too small libgsmdec: do not needlessly set *data_size to 0 gsmdec: do not needlessly set *data_size to 0 gsmdec: add flush function to reset the decoder state when seeking libgsmdec: check output buffer size before decoding gsmdec: log error message when output buffer is too small. ... Conflicts: Changelog ffplay.c libavcodec/indeo3.c libavcodec/mjpeg_parser.c libavcodec/vp3.c libavformat/cutils.c libavformat/id3v2.c libavutil/parseutils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove some stray unnecessary ffmpeg references.Diego Biurrun2011-11-02
| |
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-05-13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (33 commits) rtpdec_qdm2: Don't try to parse data packet if no configuration is received ac3enc: put the counting of stereo rematrixing bits in the same place to make the code easier to understand. ac3enc: clean up count_frame_bits() and count_frame_bits_fixed() mpegvideo: make FF_DEBUG_DCT_COEFF output coeffs via av_log() instead of just via AVFrame. srtdec: make sure we don't write past the end of buffer wmaenc: improve channel count and bitrate error handling in encode_init() matroskaenc: make sure we don't produce invalid file with no codec ID matroskadec: check that pointers were initialized before accessing them lavf: fix function name in compute_pkt_fields2 av_dlog message lavf: fix av_find_best_stream when providing a wanted stream. lavf: fix av_find_best_stream when decoder_ret is given and using a related stream. ffmpeg: factorize quality calculation tiff: add support for SamplesPerPixel tag in tiff_decode_tag() tiff: Prefer enum TiffCompr over int for TiffContext.compr. mov: Support edit list atom version 1. configure: Enable libpostproc automatically if GPL code is enabled. Cosmetics: fix prototypes in oggdec oggdec: fix memleak with continuous streams. matroskaenc: add missing new line in av_log() call dnxhdenc: add AVClass in private context. ... swscale changes largely rewritten by me or replaced by baptsites due to lots of bugs in ronalds code. Above code is also just in case its not obvios to a large extended duplicates that where cherry picked from ffmpeg. Conflicts: configure ffmpeg.c libavformat/matroskaenc.c libavutil/pixfmt.h libswscale/ppc/swscale_template.c libswscale/swscale.c libswscale/swscale_template.c libswscale/utils.c libswscale/x86/swscale_template.c tests/fate/h264.mak tests/ref/lavfi/pixdesc_le tests/ref/lavfi/pixfmts_copy_le tests/ref/lavfi/pixfmts_null_le tests/ref/lavfi/pixfmts_scale_le tests/ref/lavfi/pixfmts_vflip_le Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.Diego Biurrun2011-05-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-04-24
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: Handle unicode file names on windows rtp: Rename the open/close functions to alloc/free Lowercase all ff* program names. Refer to ff* tools by their lowercase names. NOT Pulled Replace more FFmpeg instances by Libav or ffmpeg. Replace `` by $() syntax in shell scripts. patcheck: Allow overiding grep program(s) through environment variables. NOT Pulled Remove stray libavcore and _g binary references. vorbis: Rename decoder/encoder files to follow general file naming scheme. aacenc: Fix whitespace after last commit. cook: Fix small typo in av_log_ask_for_sample message. aacenc: Finish 3GPP psymodel analysis for non mid/side cases. Remove RDFT dependency from AAC decoder. Add some debug log messages to AAC extradata Fix mov debug (u)int64_t format strings. bswap: use native types for av_bwap16(). doc: FLV muxing is supported. applehttp: Handle AES-128 encrypted streams Add a protocol handler for AES CBC decryption with PKCS7 padding doc: Mention that DragonFly BSD requires __BSD_VISIBLE set Conflicts: ffplay.c ffprobe.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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: fix poll() implementationMax Shakhmetov2011-02-15
| | | | | | | | | | | | | | Our poll implementation does not iterate over the pollfd array properly while setting the revents. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * 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>
| * os: replace select with pollLuca Barbato2011-01-28
| | | | | | | | | | Select has limitations on the fd values it could accept and silently breaks when it is reached.
* | os_support: fix poll() implementationMax Shakhmetov2011-02-16
| | | | | | | | | | | | | | | | 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 9ac2085dbf1821b7995fe360038c1bf0f3940032)
* | os_support: make poll() fallbacks conditional on CONFIG_NETWORKMans Rullgard2011-01-30
| | | | | | | | | | | | | | | | | | | | | | | | 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> (cherry picked from commit 362d8f7d9e6a3bca2ce89f767d153d3ab8bf5773)
* | os: replace select with pollLuca Barbato2011-01-30
|/ | | | | | Select has limitations on the fd values it could accept and silently breaks when it is reached. (cherry picked from commit a8475bbdb64e638bd8161df9647876fd23f8a29a)
* os_support: include some headers only when neededMåns Rullgård2010-07-06
| | | | Originally committed as revision 24072 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move resolve_host() to ffserver.cMåns Rullgård2010-03-08
| | | | | | | | | | 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
* inet_aton needs _DARWIN_C_SOURCE on OS XDavid Conrad2010-03-07
| | | | Originally committed as revision 22285 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Localize the #define _SVID_SOURCE needed for inet_aton() to os_support.cDavid Conrad2010-03-07
| | | | Originally committed as revision 22284 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make our getaddrinfo implementation initialize "struct addrinfo" returnReimar Döffinger2010-02-28
| | | | | | value to NULL on errors. Originally committed as revision 22122 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement gai_strerror() for systems lacking such functionality. PatchRonald S. Bultje2010-02-08
| | | | | | by KO Myung-Hun <komh challion net>. Originally committed as revision 21692 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Load the proper getaddrinfo functions from ws2_32.dll, if they're present.Martin Storsjö2010-01-25
| | | | | | Patch by Martin Storsjö <martin at martin dot st>. Originally committed as revision 21443 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Provide a fallback for getnameinfo() also. Patch by Martin StorsjöMartin Storsjö2010-01-11
| | | | | | <$firstname()$firstname,st>. Originally committed as revision 21150 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Provide fallback implementations of getaddrinfo() and freeaddrinfo().Martin Storsjö2010-01-11
| | | | | | Patch by Martin Storsjö <$firstname()$firstname,st>. Originally committed as revision 21145 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use getaddrinfo(), if available, in resolve_host(). Patch by MartinRonald S. Bultje2010-01-11
| | | | | | Storsjö <$firstname()$firstname,st>. Originally committed as revision 21143 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Currently, the replacement which is used if inet_aton isn't available,Martin Storsjö2010-01-08
| | | | | | | | | 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
* 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
* struct timeval requires #include <sys/time.h>Dave Yeo2008-08-16
| | | | | | patch by Dave Yeo daveryeo _at_ telus _dot_ net Originally committed as revision 14793 to svn://svn.ffmpeg.org/ffmpeg/trunk
* use h_addr_list[0] instead of h_addr as this is the posix hostent field nameAurelien Jacobs2008-08-14
| | | | Originally committed as revision 14768 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ensure we get explicit definition of various _XOPEN_SOURCE functions we useAurelien Jacobs2008-08-14
| | | | Originally committed as revision 14766 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
* Check for the presence of sys/select.h and conditionally #include it.Michael Kostylev2007-12-27
| | | | | | patch by Michael Kostylev, mik niipt ru Originally committed as revision 11324 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix compilation of os_support.c for MinGW with --disable-networkTom Harper2007-12-09
| | | | | | Patch by Tom Harper <d.thomas.harper <at> gmail.com> Originally committed as revision 11200 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Include os_support.h only when neededLuca Abeni2007-11-21
| | | | Originally committed as revision 11073 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check for winsock2.h instead of __MINGW32__Ramiro Polla2007-08-08
| | | | Originally committed as revision 9988 to svn://svn.ffmpeg.org/ffmpeg/trunk
* use sscanf to parse addressBenoit Fouet2007-07-19
| | | | Originally committed as revision 9756 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove useless checkBenoit Fouet2007-07-18
| | | | Originally committed as revision 9733 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix emulated inet_aton so that it fails for invalid addressesJoakim Plate2007-07-18
| | | | | | | | | 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
* MinGW has those include files.Ramiro Polla2007-07-16
| | | | Originally committed as revision 9707 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move av_gettime() back to lavf/utils.cRamiro Polla2007-07-16
| | | | Originally committed as revision 9706 to svn://svn.ffmpeg.org/ffmpeg/trunk
* MinGW has gettimeofday() since mingw-runtime-3.10Ramiro Polla2007-07-16
| | | | Originally committed as revision 9705 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove OS/2 supportRamiro Polla2007-07-10
| | | | Originally committed as revision 9586 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove localtime_r implementation for systems that don't have it.Ramiro Polla2007-06-25
| | | | | | It is no longer used. Originally committed as revision 9425 to svn://svn.ffmpeg.org/ffmpeg/trunk
* r9095 invalidly removed the check for non-winsockAlex Beregszaszi2007-05-21
| | | | Originally committed as revision 9096 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix FD_SETSIZE handling in our poll() emulationAlex Beregszaszi2007-05-21
| | | | Originally committed as revision 9095 to svn://svn.ffmpeg.org/ffmpeg/trunk
* initial mingw networking supportAlex Beregszaszi2007-05-15
| | | | Originally committed as revision 9029 to svn://svn.ffmpeg.org/ffmpeg/trunk
* implement ff_socket_nonblock and use it in networking codeAlex Beregszaszi2007-04-27
| | | | Originally committed as revision 8846 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Remove trailing whitespace and tabs.Diego Biurrun2007-04-26
| | | | Originally committed as revision 8838 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move resolve_host from tcp.c to os_support.c as it is used widelyAlex Beregszaszi2007-04-26
| | | | Originally committed as revision 8834 to svn://svn.ffmpeg.org/ffmpeg/trunk