summaryrefslogtreecommitdiffstats
path: root/libavformat/os_support.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-06-301-1/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: dsputilenc_mmx: split assignment of ff_sse16_sse2 to SSE2 section. dnxhdenc: add space between function argument type and comment. x86: fmtconvert: add special asm for float_to_int16_interleave_misc_* attributes: Add a definition of av_always_inline for MSVC cmdutils: Pass the actual chosen encoder to filter_codec_opts os_support: Add fallback definitions for stat flags os_support: Rename the poll fallback function to ff_poll network: Check for struct pollfd os_support: Don't compare a negative number against socket descriptors os_support: Include all the necessary headers for the win32 open function x86: vc1: fix and enable optimised loop filter Conflicts: cmdutils.c cmdutils.h ffmpeg.c ffplay.c libavformat/os_support.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * os_support: Add fallback definitions for stat flagsRonald S. Bultje2012-06-301-0/+9
| | | | | | | | | | | | | | | | 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-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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-301-0/+5
| | | | | | | | | | | | | | | | 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>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-05-231-0/+12
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: os_support: Define SHUT_RD, SHUT_WR and SHUT_RDWR on OS/2 http: Add support for reading http POST reply headers http: Add http_shutdown() for ending writing of posts tcp: Allow signalling end of reading/writing avio: Add a function for signalling end of reading/writing lavfi: fix comment, audio is supported now. lavfi: fix incorrect comment. lavfi: remove avfilter_null_* from public API on next bump. lavfi: remove avfilter_default_* from public API on next bump. lavfi: deprecate default config_props() callback and refactor avfilter_config_links() avfiltergraph: smarter sample format selection. avconv: rename transcode_audio/video to decode_audio/video. asyncts: reset delta to 0 when it's not used. x86: lavc: use %if HAVE_AVX guards around AVX functions in yasm code. dwt: return errors from ff_slice_buffer_init() Conflicts: ffmpeg.c libavfilter/avfilter.c libavfilter/avfilter.h libavfilter/formats.c libavfilter/version.h libavfilter/vf_blackframe.c libavfilter/vf_drawtext.c libavfilter/vf_fade.c libavfilter/vf_format.c libavfilter/vf_showinfo.c libavfilter/video.c libavfilter/video.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * os_support: Define SHUT_RD, SHUT_WR and SHUT_RDWR on OS/2Dave Yeo2012-05-231-0/+6
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
| * tcp: Allow signalling end of reading/writingSamuel Pitoiset2012-05-221-0/+6
| | | | | | | | | | | | | | 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 warnings when compiling with mingw (mingw-w64, 32 bits)Vincent Torri2012-02-031-0/+3
| | | | | | | | | | Reviewed-by: Ramiro Polla <ramiro.polla@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-11-031-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-021-1/+1
| |
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-04-241-0/+5
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-241-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-191-4/+4
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
| * os_support: make poll() fallbacks conditional on CONFIG_NETWORKMans Rullgard2011-01-281-2/+0
| | | | | | | | | | | | | | | | | | | | | | 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_support: make poll() fallbacks conditional on CONFIG_NETWORKMans Rullgard2011-01-301-2/+0
|/ | | | | | | | | | | | 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)
* Move INET6_ADDRSTRLEN to network.h, similar to other network-related fixupsRonald S. Bultje2010-09-031-4/+0
| | | | | | | 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-031-0/+4
| | | | | | | | 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-101-17/+0
| | | | | | | | 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-031-0/+2
| | | | | | | | 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-201-1/+1
| | | | | | | | 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-211-1/+1
| | | | 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-131-1/+1
| | | | | | | 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-011-1/+1
| | | | | | | 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-241-0/+2
| | | | Originally committed as revision 16747 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-131-6/+6
| | | | | | 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-031-1/+1
| | | | 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-101-0/+9
| | | | Originally committed as revision 15594 to svn://svn.ffmpeg.org/ffmpeg/trunk
* MinGW runtime 3.15 has a wrapper for usleep().Ramiro Polla2008-10-021-3/+0
| | | | Originally committed as revision 15522 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Globally rename the header inclusion guard names.Stefano Sabatini2008-08-311-3/+3
| | | | | | | | | 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-011-2/+0
| | | | | | | | | 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-011-0/+2
| | | | Originally committed as revision 14497 to svn://svn.ffmpeg.org/ffmpeg/trunk
* typo: occured --> occurredDiego Biurrun2008-03-221-1/+1
| | | | 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-081-0/+1
| | | | | | 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-081-2/+1
| | | | | | | 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-081-0/+2
| | | | Originally committed as revision 12372 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Group network-related code togetherRamiro Polla2008-03-081-4/+4
| | | | Originally committed as revision 12371 to svn://svn.ffmpeg.org/ffmpeg/trunk
* __stdcall -> WINAPIRamiro Polla2008-03-071-1/+1
| | | | | | | 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-131-2/+2
| | | | 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-011-1/+1
| | | | | | | 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-241-1/+1
| | | | | | 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-271-6/+0
| | | | Originally committed as revision 11095 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add FFMPEG_ prefix to all multiple inclusion guards.Diego Biurrun2007-10-171-3/+3
| | | | Originally committed as revision 10765 to svn://svn.ffmpeg.org/ffmpeg/trunk
* use proper closesocket definesAlex Beregszaszi2007-08-081-8/+1
| | | | Originally committed as revision 9992 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check for winsock2.h instead of __MINGW32__Ramiro Polla2007-08-081-0/+3
| | | | Originally committed as revision 9988 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove OS/2 supportRamiro Polla2007-07-101-9/+1
| | | | Originally committed as revision 9586 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove leading underscores from specifiers, they are reserved.Diego Biurrun2007-07-021-3/+3
| | | | Originally committed as revision 9461 to svn://svn.ffmpeg.org/ffmpeg/trunk
* BeOS only: we don't have SA_RESTART. #define to 0 and emit a warning. I ↵François Revol2007-02-231-0/+4
| | | | | | don't plan on hosting a streaming tv anyway but it gets ffserver building. Originally committed as revision 8103 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure we don't try to emulate poll() when it's there if ↵François Revol2007-02-151-0/+2
| | | | | | --disable-ffserver... 10l Originally committed as revision 7991 to svn://svn.ffmpeg.org/ffmpeg/trunk
* MinGW patch by <koyama AT infocity DOT co DOT jp>, reworked. Removed ↵François Revol2007-02-151-6/+2
| | | | | | placeholder for winsock. Originally committed as revision 7990 to svn://svn.ffmpeg.org/ffmpeg/trunk
* poll() emulation for BeOS, and maybe MinGW.François Revol2007-02-151-0/+28
| | | | Originally committed as revision 7987 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud